VSF Documented
Data Structures | Macros
joystick.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./linux/types.h"
#include "./sys/types.h"
#include "./sys/ioctl.h"

Go to the source code of this file.

Data Structures

struct  js_event
 

Macros

#define JS_EVENT_BUTTON   0x01
 
#define JS_EVENT_AXIS   0x02
 
#define JS_EVENT_INIT   0x80
 
#define JSIOCGAXES   _IOR('j', 0x11, __u8)
 
#define JSIOCGBUTTONS   _IOR('j', 0x12, __u8)
 
#define JSIOCGNAME(len)   _IOC(_IOC_READ, 'j', 0x13, len)
 
#define JSIOCSAXMAP   _IOW('j', 0x31, __u8[ABS_CNT])
 
#define JSIOCGAXMAP   _IOR('j', 0x32, __u8[ABS_CNT])
 
#define JSIOCSBTNMAP   _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1])
 
#define JSIOCGBTNMAP   _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1])
 

Macro Definition Documentation

◆ JS_EVENT_BUTTON

#define JS_EVENT_BUTTON   0x01

◆ JS_EVENT_AXIS

#define JS_EVENT_AXIS   0x02

◆ JS_EVENT_INIT

#define JS_EVENT_INIT   0x80

◆ JSIOCGAXES

#define JSIOCGAXES   _IOR('j', 0x11, __u8)

◆ JSIOCGBUTTONS

#define JSIOCGBUTTONS   _IOR('j', 0x12, __u8)

◆ JSIOCGNAME

#define JSIOCGNAME (   len)    _IOC(_IOC_READ, 'j', 0x13, len)

◆ JSIOCSAXMAP

#define JSIOCSAXMAP   _IOW('j', 0x31, __u8[ABS_CNT])

◆ JSIOCGAXMAP

#define JSIOCGAXMAP   _IOR('j', 0x32, __u8[ABS_CNT])

◆ JSIOCSBTNMAP

#define JSIOCSBTNMAP   _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1])

◆ JSIOCGBTNMAP

#define JSIOCGBTNMAP   _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1])
Generated from commit: vsfteam/vsf@3f77d3b