#include "linux-joystick.h"
#include <linux/joystick.h>
#include <sstream>
#include <iostream>
#include "perf/perf.h"
#include "util/file.h"
#include "wave-nix/wave-nix.h"
Go to the source code of this file.
Namespaces | |
namespace | gamepad |
Defines | |
#define | s_devicePath "/dev/input/" |
#define | s_devicePrefix "js" |
#define | DUMP_EVBIT(name, desc) |
Functions | |
static bool | gamepad::test_bit (IN int bit, IN const byte_t *array) |
static void | gamepad::dumpCapabilities (IN const byte_t *pb) throw () |
static int | gamepad::getIndex (IN int value, IN const int *map, IN int size) |
static void | gamepad::diagnoseError (void) |
static bool | gamepad::isJoystickEntry (IN smart_fd &fd) |
const char * | gamepad::getJoystickIndex (IN const char *path) |
static void | gamepad::refreshLinuxJoystickDevicePaths (void) |
smart_ptr< SourceDevice > | gamepad::getLinuxJoystickSourceDevice (IN const char *path) |
smart_ptr< SourceDeviceFactory > | gamepad::getLinuxJoystickSourceDeviceFactory (void) |
Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the linux joystick API. | |
Variables | |
const int | gamepad::s_maxName = 80 |
#define s_devicePath "/dev/input/" |
Definition at line 40 of file linux-joystick.cpp.
#define s_devicePrefix "js" |
Definition at line 41 of file linux-joystick.cpp.
#define DUMP_EVBIT | ( | name, | ||
desc | ||||
) |
{ \ if (test_bit(EV_ ##name , pb)) { DPRINTF(" %s", desc); } \ }
Definition at line 74 of file linux-joystick.cpp.