#include "linux-input.h"
#include <linux/input.h>
#include <sstream>
#include "perf/perf.h"
#include "util/file.h"
Go to the source code of this file.
Namespaces | |
namespace | gamepad |
Defines | |
#define | DUMP_EVBIT(name, desc) |
Enumerations | |
enum | gamepad::eFFState { gamepad::eFF_NotLoaded = 1, gamepad::eFF_Loaded = 2, gamepad::eFF_Playing = 3, gamepad::eFF_Invalid = 0 } |
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 bool | gamepad::isInputEntry (IN smart_fd &fd) |
const char * | gamepad::getInputIndex (IN const char *path) |
static void | gamepad::refreshLinuxInputDevicePaths (void) |
smart_ptr< SourceDevice > | gamepad::getLinuxInputSourceDevice (IN const char *path, IN bool wantForceFeedback) |
smart_ptr< SourceDeviceFactory > | gamepad::getLinuxInputSourceDeviceFactory (IN bool wantForceFeedbackAtRiskOfKernelCrash=false) |
Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the linux input event API. | |
Variables | |
static const char * | gamepad::s_devicePath = "/dev/input/" |
static const char * | gamepad::s_prefix = "LinuxInput" |
static SetString | gamepad::s_devicePaths |
#define DUMP_EVBIT | ( | name, | ||
desc | ||||
) |
{ \ if (test_bit(EV_ ##name , pb)) { DPRINTF(" %s", desc); } \ }
Definition at line 94 of file linux-input.cpp.