2015-08-15 03:07:37 +00:00
|
|
|
#include "types.h"
|
|
|
|
#include "linux-dist/main.h"
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#define JOYSTICK_DEVICE_STRING "/dev/input/js%d"
|
2015-08-25 23:34:49 +00:00
|
|
|
#define JOYSTICK_DEFAULT_DEVICE_ID -1
|
2015-08-15 03:07:37 +00:00
|
|
|
#define JOYSTICK_MAP_SIZE 32
|
|
|
|
|
|
|
|
extern int input_joystick_init(const char* device);
|
2015-08-17 21:46:28 +00:00
|
|
|
extern bool input_joystick_handle(int fd, u32 port);
|