#include "internal.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/inotify.h>
#include <fcntl.h>
#include <errno.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | isBitSet(bit, arr) (arr[(bit) / 8] & (1 << ((bit) % 8))) |
#define | SYN_DROPPED 3 |
Functions | |
void | _glfwDetectJoystickConnectionLinux (void) |
GLFWbool | _glfwInitJoysticksLinux (void) |
int | _glfwPlatformPollJoystick (_GLFWjoystick *js, int mode) |
void | _glfwPlatformUpdateGamepadGUID (char *guid) |
void | _glfwTerminateJoysticksLinux (void) |
static void | closeJoystick (_GLFWjoystick *js) |
static int | compareJoysticks (const void *fp, const void *sp) |
static void | handleAbsEvent (_GLFWjoystick *js, int code, int value) |
static void | handleKeyEvent (_GLFWjoystick *js, int code, int value) |
static GLFWbool | openJoystickDevice (const char *path) |
static void | pollAbsState (_GLFWjoystick *js) |
#define isBitSet | ( | bit, | |
arr | |||
) | (arr[(bit) / 8] & (1 << ((bit) % 8))) |
Definition at line 123 of file linux_joystick.c.
#define SYN_DROPPED 3 |
Definition at line 43 of file linux_joystick.c.
Definition at line 345 of file linux_joystick.c.
Definition at line 267 of file linux_joystick.c.
int _glfwPlatformPollJoystick | ( | _GLFWjoystick * | js, |
int | mode | ||
) |
Definition at line 391 of file linux_joystick.c.
void _glfwPlatformUpdateGamepadGUID | ( | char * | guid | ) |
Definition at line 431 of file linux_joystick.c.
Definition at line 323 of file linux_joystick.c.
|
static |
Definition at line 244 of file linux_joystick.c.
Definition at line 253 of file linux_joystick.c.
|
static |
Definition at line 57 of file linux_joystick.c.
|
static |
Definition at line 48 of file linux_joystick.c.
|
static |
Definition at line 127 of file linux_joystick.c.
|
static |
Definition at line 105 of file linux_joystick.c.