Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F623899
linux_joystick.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
597 B
Referenced Files
None
Subscribers
None
linux_joystick.h
View Options
#ifdef LINUX
#include
"joystick.h"
#include
<stdint.h>
#include
<vector>
#include
<linux/input.h>
#include
<linux/joystick.h>
#define NAME_LENGTH 1024
class
LinuxJoystick
:
public
Joystick
{
public
:
virtual
void
poll
();
virtual
~
LinuxJoystick
();
friend
class
Joystick
;
protected
:
LinuxJoystick
();
/* file descriptor for /dev/input/jsX */
int
file
;
char
name
[
NAME_LENGTH
];
unsigned
char
axes
;
unsigned
char
buttons
;
int
version
;
uint16_t
btnmap
[
KEY_MAX
-
BTN_MISC
+
1
];
uint8_t
axmap
[
ABS_MAX
+
1
];
char
*
button
;
int
*
axis
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 9:45 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122957
Default Alt Text
linux_joystick.h (597 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline