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

◆ isBitSet

#define isBitSet (   bit,
  arr 
)    (arr[(bit) / 8] & (1 << ((bit) % 8)))

Definition at line 123 of file linux_joystick.c.

◆ SYN_DROPPED

#define SYN_DROPPED   3

Definition at line 43 of file linux_joystick.c.

Function Documentation

◆ _glfwDetectJoystickConnectionLinux()

void _glfwDetectJoystickConnectionLinux ( void  )

Definition at line 345 of file linux_joystick.c.

◆ _glfwInitJoysticksLinux()

GLFWbool _glfwInitJoysticksLinux ( void  )

Definition at line 267 of file linux_joystick.c.

◆ _glfwPlatformPollJoystick()

int _glfwPlatformPollJoystick ( _GLFWjoystick js,
int  mode 
)

Definition at line 391 of file linux_joystick.c.

◆ _glfwPlatformUpdateGamepadGUID()

void _glfwPlatformUpdateGamepadGUID ( char *  guid)

Definition at line 431 of file linux_joystick.c.

◆ _glfwTerminateJoysticksLinux()

void _glfwTerminateJoysticksLinux ( void  )

Definition at line 323 of file linux_joystick.c.

◆ closeJoystick()

static void closeJoystick ( _GLFWjoystick js)
static

Definition at line 244 of file linux_joystick.c.

◆ compareJoysticks()

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

Definition at line 253 of file linux_joystick.c.

◆ handleAbsEvent()

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

Definition at line 57 of file linux_joystick.c.

◆ handleKeyEvent()

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

Definition at line 48 of file linux_joystick.c.

◆ openJoystickDevice()

static GLFWbool openJoystickDevice ( const char *  path)
static

Definition at line 127 of file linux_joystick.c.

◆ pollAbsState()

static void pollAbsState ( _GLFWjoystick js)
static

Definition at line 105 of file linux_joystick.c.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22