Macros | Functions
linux_joystick.c File Reference
#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>
Include dependency graph for linux_joystick.c:

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)
 

Macro Definition Documentation

#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.

Function Documentation

void _glfwDetectJoystickConnectionLinux ( void  )

Definition at line 345 of file linux_joystick.c.

GLFWbool _glfwInitJoysticksLinux ( void  )

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.

void _glfwTerminateJoysticksLinux ( void  )

Definition at line 323 of file linux_joystick.c.

static void closeJoystick ( _GLFWjoystick js)
static

Definition at line 244 of file linux_joystick.c.

static int compareJoysticks ( const void fp,
const void sp 
)
static

Definition at line 253 of file linux_joystick.c.

static void handleAbsEvent ( _GLFWjoystick js,
int  code,
int  value 
)
static

Definition at line 57 of file linux_joystick.c.

static void handleKeyEvent ( _GLFWjoystick js,
int  code,
int  value 
)
static

Definition at line 48 of file linux_joystick.c.

static GLFWbool openJoystickDevice ( const char *  path)
static

Definition at line 127 of file linux_joystick.c.

static void pollAbsState ( _GLFWjoystick js)
static

Definition at line 105 of file linux_joystick.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:27