Classes | |
struct | device_caps_t |
information about a device, as determined from enumeration of objects More... | |
struct | button_map_t |
button mapping information More... | |
struct | joystick_t |
a joystick is a 2-axis stick More... | |
struct | joystick_map_t |
describes joystick mapping More... | |
struct | pot_map_t |
describes a potentiometer mapping More... | |
struct | dpad_map_t |
a dpad_map_t describes how to map from low-level SourceDevice events (buttons or potentiometers) into dpad events. More... | |
class | Map |
A gamepad::Map is the magical binding between physical inputs (button presses, joystick moves, wheel turns) and logical events (left top trigger pressed, right joystick pushed up, etc. More... | |
class | Type |
a type of gamepad (Dualshock, Xbox, N64, etc) More... | |
class | Gamepad |
an instance of a physical gamepad. More... | |
class | Manager |
you'll want one of these to get at source devices (gamepad::SourceDevice) and create gamepad objects (gamepad::Gamepad). More... | |
struct | config_status_t |
specifies the current status of gamepad configuration More... | |
class | Configurator |
class | TypeVgfxRenderer |
use this object to render a particular gamepad Type -- assuming it has a vgfx file. More... | |
struct | pot_value_t |
what you get back when you read the value of a particular potentiometer More... | |
class | SourceDevice |
An object that supplies gamepad input. More... | |
class | SourceDeviceFactory |
objects supporting this interface can create gamepad::SourceDevice instances. More... | |
struct | device_state_t |
state snapshot of a source device. Used by configuration tools only More... | |
Typedefs | |
typedef std::vector < DIOBJECTDATAFORMAT > | vec_objdf_t |
typedef std::multimap< int, std::string > | priority_map_t |
Enumerations | |
enum | eInstruction { eInstruction_Calibrate = 0x401, eInstruction_ButtonPress = 0x111, eInstruction_DpadCenter = 0x310, eInstruction_DpadLeft = 0x311, eInstruction_DpadRight = 0x312, eInstruction_DpadUp = 0x313, eInstruction_DpadDown = 0x314, eInstruction_JoyCenter = 0x320, eInstruction_JoyLeft = 0x321, eInstruction_JoyUp = 0x322, eInstruction_PotCenter = 0x330, eInstruction_PotExtreme = 0x331, eInstruction_RequestControl = 0x100, eInstruction_PressMainAction = 0x200, eInstruction_ExternalEvent = 0x400, eInstruction_Invalid = 0 } |
instruction set for user More... | |
enum | eFFState { eFF_NotLoaded = 1, eFF_Loaded = 2, eFF_Playing = 3, eFF_Invalid = 0 } |
enum | eButton { eButtonDown = 0x01, eButtonUp = 0x00, eButtonWasPushed = 0x10, eButtonWasReleased = 0x20, eButtonWasOrIsDown = 0x11, eButtonInvalid = 0x80 } |
button state enum. More... | |
enum | eDeviceState { eDevice_Attached = 0x0001, eDevice_Detached = 0x0002, eDevice_Unknown = 0x0004, eDevice_Invalid = 0 } |
device state enum. More... | |
Functions | |
static const GUID * | getGuidPointer (IN const GUID &rg) |
static const char * | getGuidName (IN const GUID *pg) |
static void | writeODFType (IO std::ostream &stream, IN dword_t dwType) |
static void | writeODFFlags (IO std::ostream &stream, IN dword_t dwFlags) |
static void | writeDCFlags (IO std::ostream &stream, IN dword_t dwFlags) |
static BOOL CALLBACK | objectCallback (LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef) |
void | checkDIError (IN HRESULT hr) |
helper method to inspect Windows DirectInput error codes | |
void | writeDevInstance (IO std::ostream &stream, IN const DIDEVICEINSTANCEA &di) |
void | writeDevCaps (IO std::ostream &stream, IN const DIDEVCAPS &dc) |
void | writeObjectDataFormat (IO std::ostream &stream, IN const DIOBJECTDATAFORMAT &odf) |
void | writeDataFormat (IO std::ostream &stream, IN const DIDATAFORMAT &df) |
void | writeStateDebug (IO std::ostream &stream, IN const DIDATAFORMAT &df, IN const byte_t *buffer) |
void | writeState (IO std::ostream &stream, IN const DIDATAFORMAT &df, IN const byte_t *buffer) |
byte_t * | getDataFormatForDevice (IN IDirectInputDevice8 *device, OUT device_caps_t &dc) |
This routine will inspect a given device, and then construct a custom DIDATAFORMAT struct to specify how data should be retrieved. | |
int32_t | getPOVValue (IN const byte_t *data, IN const device_caps_t &dc, IN int povIndex) |
dword_t | getButtonValue (IN const byte_t *data, IN const device_caps_t &dc, IN int buttonIndex) |
int32_t | getAxisValue (IN const byte_t *data, IN const device_caps_t &dc, IN int axisIndex) |
smart_ptr< SourceDeviceFactory > | getDirectInputSourceDeviceFactory (void) |
Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the DirectInput API. | |
static smart_ptr< i18n::Manager > | createLocaleMgr (IN const char *locale, IN nstream::Folder *dir, IN const char *fileroot, IN const char *importantId) |
smart_ptr< i18n::Manager > | getConfigLocaleMgr (IN const char *primaryLocale, IN const char *defaultLocale, IN nstream::Folder *dataDirectory) |
return the localization manager for gamepad configuration | |
smart_ptr< i18n::Manager > | getTypeLocaleMgr (IN const Type *type, IN const char *primaryLocale, IN const char *defaultLocale, IN nstream::Folder *dataDirectory) |
return the localization manager for the specified gamepad::Type | |
static void | getButtonsChanged (IN buttons_t prev_buttons, IN buttons_t curr_buttons, OUT buttons_t &pressed, OUT buttons_t &released) throw () |
given previous + current button state, say what was pressed and released | |
static smart_ptr< Map > | readMapFromString (IN const char *val) |
static int | getDpadFromPot (IN SourceDevice *device, IN int idx) |
static bool | potMoved (IN SourceDevice *device, IN int idx) |
static nstream::eIterationFlag | loadFilesCallback (IN nstream::Entry *entry, IN void *context) |
static bool | sourceAndMapInUse (IN Manager *mgr, IN const char *deviceId, IN const char *mappingId) |
static const instruct_rec_t * | getInstructionRecord (IN eInstruction instruct) |
void | addToMultimap (IN priority_map_t &map, IN int key, IN const char *val) |
static bool | notEqual (IN const char *string1, IN const char *string2A, IN const char *string2B) |
const char * | getInstructionToken (IN eInstruction instruct) |
handy string token given enum (can be used as key for localized string) | |
static int | addHints (IN dialog::ContainerRequest &req, IN i18n::Manager *mgr) |
static const char * | getTypeString (IN Manager *mgr, IN const Type *type, IN const std::string &locale, OUT char *buffer, IN int bufsize) |
smart_ptr < converse::ConversationHost > | createConfigurationHost (IN smart_ptr< Manager > &mgr, IN int gamepadId=-1) |
create a converse::ConversationHost that hosts conversations (series of dialogs) that allow the user to configure a gamepad. | |
static void | addFloat (IN dictionary_t &data, IN const char *key, IN float val) |
static bool | getField (IN vgfx::ObjectMap *map, IN const char *id, IN const char *field, OUT std::string &value) |
static void | addOrMoveObject (IN vgfx::ObjectMap *map, IN vgfx::Drawer *drawer, IN const char *baseId, IN const char *newId, IN float x, IN float y, IN float phi) |
static void | removeObject (IN vgfx::ObjectMap *map, IN const char *id) |
void | registerVgfxSimpleFactory (IN smart_ptr< Manager > &gamepadMgr, IN dialog::Manager *dialogMgr, IN smart_ptr< vgfx::Drawer > &drawer) |
register the vgfx-based simple rendering dialog Element with the Manager | |
const char * | getVgfxSimpleElementName (void) throw () |
what is the name of the simple rendering element? | |
static float | getFloat (IN const pot_value_t &pv) throw () |
void | registerVgfxTestFactory (IN smart_ptr< Manager > &gamepadMgr, IN dialog::Manager *dialogMgr, IN smart_ptr< vgfx::Drawer > &drawer) |
register the vgfx-based testing dialog Element with the dialog Manager | |
const char * | getVgfxTestElementName (void) throw () |
what is the name of the testing element? | |
static bool | test_bit (IN int bit, IN const byte_t *array) |
static void | dumpCapabilities (IN const byte_t *pb) throw () |
static int | getIndex (IN int value, IN const int *map, IN int size) |
static bool | isInputEntry (IN smart_fd &fd) |
const char * | getInputIndex (IN const char *path) |
static void | refreshLinuxInputDevicePaths (void) |
smart_ptr< SourceDevice > | getLinuxInputSourceDevice (IN const char *path, IN bool wantForceFeedback) |
smart_ptr< SourceDeviceFactory > | 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. | |
static void | diagnoseError (void) |
static bool | isJoystickEntry (IN smart_fd &fd) |
const char * | getJoystickIndex (IN const char *path) |
static void | refreshLinuxJoystickDevicePaths (void) |
smart_ptr< SourceDevice > | getLinuxJoystickSourceDevice (IN const char *path) |
smart_ptr< SourceDeviceFactory > | getLinuxJoystickSourceDeviceFactory (void) |
Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the linux joystick API. | |
static int | getIntDigits (IN int x) throw () |
static int | getPotDigits (IN int min, IN int max) throw () |
static void | printPot (IN int idx, IN const gamepad::pot_value_t &pv) throw () |
void | testSourceDeviceFactory (IN SourceDeviceFactory *factory) |
Given a SourceDeviceFactory object, this routine will allow a human user to test the factory and devices it exposes. | |
byte_t | updateButton (IN byte_t oldBitFlags, IN bool isButtonDown) throw () |
helper method to update a button value. | |
void | snapshotState (IN SourceDevice *device, OUT device_state_t &state) |
take a state snapshot | |
int | buttonDown (IN const device_state_t &state) |
is a single button down? | |
int | buttonChanged (IN const device_state_t &oldState, IN const device_state_t &newState) |
compare new and old states: did a single button change state? | |
int | buttonReleased (IN const device_state_t &state) |
was a button released? | |
bool | potsCalibrated (IN const device_state_t &oldState, IN const device_state_t &newState) |
compare new and old states: are all potentiometers calibrated? | |
int | maxPotValue (IN const device_state_t &state, IN float threshold) |
get pot at largest value--specify threshold: 0 (min) to 1 (max). | |
int | maxPotChanged (IN const device_state_t &oldState, IN const device_state_t &newState) |
compare new and old states: which potentiometer has changed most? | |
void | getRecommendedMappings (IN Manager *manager, IN SourceDevice *device, OUT VecString &mapIds) |
helper method to return a list of recommended mappings for a given source device. | |
void | autoconfigureGamepads (IN Manager *manager) |
helper method to autoconfigure any gamepads possible based on recommended mappings. | |
Variables | |
static const odf_type_entry_t | s_odfTypes [] |
static const odf_flag_entry_t | s_odfFlags [] |
static const dc_flag_entry_t | s_dcFlags [] |
static const guid_entry_t | s_guids [] |
static const int | s_FortyFiveDegreesValue = 4500 |
const char * | s_extension = "gamepad" |
static const input_entry_t | s_inputTypes [] |
static const float | s_buttonRatio = 0.2 |
static const float | s_4potRatio = 0.08 |
static const char * | s_gamepadExtension = "gamepad" |
static const char * | s_mappingExtension = "map" |
static const instruct_rec_t | s_instructionRecords [] |
static const int | s_interleave = 8 |
static const float | s_buttonThreshold = 0.95 |
static const char * | s_defaultLocale = "en_US.UTF-8" |
static const char * | s_widthString = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" |
static const char * | s_simpleElementName = "gamepadVgfxSimple" |
static const char * | s_null = "(null)" |
static const char * | s_testElementName = "gamepadVgfxTest" |
static const char * | s_devicePath = "/dev/input/" |
static const char * | s_prefix = "LinuxInput" |
static SetString | s_devicePaths |
const int | s_maxName = 80 |
| |
enum | eDpad { eDpad_Centered = 0, eDpad_Left = 1, eDpad_Right = 2, eDpad_Up = 4, eDpad_Down = 8, eDpad_UpLeft = eDpad_Up | eDpad_Left, eDpad_UpRight = eDpad_Up | eDpad_Right, eDpad_DownLeft = eDpad_Down | eDpad_Left, eDpad_DownRight = eDpad_Down | eDpad_Right, eDpad_Invalid = 16 } |
the current position of a dpad. More... | |
typedef uint32_t | buttons_t |
all button values OR'd together | |
smart_ptr< Map > | readMap (IN const Datahash *hash) |
read mapping from a datahash (often a text file) | |
smart_ptr< Datahash > | writeMap (IN const Map *map) |
write mapping to a datahash (you can then use Datahash utility methods to write to a stream etc) | |
| |
enum | eInputType { eInput_Button = 0x01, eInput_Joystick = 0x02, eInput_Pot = 0x04, eInput_Dpad = 0x08, eInput_Invalid = 0x00 } |
typedef std::map< std::string, smart_ptr< Type > > | gamepad_type_map_t |
maps from name --> gamepad type object | |
smart_ptr< Type > | readType (IN nstream::Stream *stream) |
read a gamepad type object from the given datahash | |
void | addGamepadTypesInFolderToMap (IO nstream::Folder *folder, IO gamepad_type_map_t &map) |
load all gamepad objects in the specified folder, and add them to the provided map (keyed by name, see gamepad::Type::getName() ). |
typedef std::vector<DIOBJECTDATAFORMAT> gamepad::vec_objdf_t |
Definition at line 144 of file di-diagnostics.cpp.
typedef std::multimap<int, std::string> gamepad::priority_map_t |
Definition at line 70 of file gamepad-config.cpp.
enum gamepad::eFFState |
Definition at line 45 of file linux-input.cpp.
static const GUID* gamepad::getGuidPointer | ( | IN const GUID & | rg | ) | [static] |
Definition at line 170 of file di-diagnostics.cpp.
static const char* gamepad::getGuidName | ( | IN const GUID * | pg | ) | [static] |
Definition at line 189 of file di-diagnostics.cpp.
static void gamepad::writeODFType | ( | IO std::ostream & | stream, | |
IN dword_t | dwType | |||
) | [static] |
Definition at line 209 of file di-diagnostics.cpp.
static void gamepad::writeODFFlags | ( | IO std::ostream & | stream, | |
IN dword_t | dwFlags | |||
) | [static] |
Definition at line 225 of file di-diagnostics.cpp.
static void gamepad::writeDCFlags | ( | IO std::ostream & | stream, | |
IN dword_t | dwFlags | |||
) | [static] |
Definition at line 241 of file di-diagnostics.cpp.
static BOOL CALLBACK gamepad::objectCallback | ( | LPCDIDEVICEOBJECTINSTANCE | lpddoi, | |
LPVOID | pvRef | |||
) | [static] |
Definition at line 257 of file di-diagnostics.cpp.
void gamepad::checkDIError | ( | IN HRESULT | hr | ) |
helper method to inspect Windows DirectInput error codes
void gamepad::writeDevInstance | ( | IO std::ostream & | stream, | |
IN const DIDEVICEINSTANCEA & | di | |||
) |
void gamepad::writeDevCaps | ( | IO std::ostream & | stream, | |
IN const DIDEVCAPS & | dc | |||
) |
void gamepad::writeObjectDataFormat | ( | IO std::ostream & | stream, | |
IN const DIOBJECTDATAFORMAT & | odf | |||
) |
void gamepad::writeDataFormat | ( | IO std::ostream & | stream, | |
IN const DIDATAFORMAT & | df | |||
) |
void gamepad::writeStateDebug | ( | IO std::ostream & | stream, | |
IN const DIDATAFORMAT & | df, | |||
IN const byte_t * | buffer | |||
) |
void gamepad::writeState | ( | IO std::ostream & | stream, | |
IN const DIDATAFORMAT & | df, | |||
IN const byte_t * | buffer | |||
) |
byte_t * gamepad::getDataFormatForDevice | ( | IN IDirectInputDevice8 * | device, | |
OUT device_caps_t & | dc | |||
) |
This routine will inspect a given device, and then construct a custom DIDATAFORMAT struct to specify how data should be retrieved.
Data will be packed with axes first, then POVs, then buttons, all data dword-aligned. need to free this memory by calling delete[]
int32_t gamepad::getPOVValue | ( | IN const byte_t * | data, | |
IN const device_caps_t & | dc, | |||
IN int | povIndex | |||
) |
dword_t gamepad::getButtonValue | ( | IN const byte_t * | data, | |
IN const device_caps_t & | dc, | |||
IN int | buttonIndex | |||
) |
int32_t gamepad::getAxisValue | ( | IN const byte_t * | data, | |
IN const device_caps_t & | dc, | |||
IN int | axisIndex | |||
) |
static smart_ptr<i18n::Manager> gamepad::createLocaleMgr | ( | IN const char * | locale, | |
IN nstream::Folder * | dir, | |||
IN const char * | fileroot, | |||
IN const char * | importantId | |||
) | [static] |
Definition at line 48 of file gamepad.cpp.
static smart_ptr<Map> gamepad::readMapFromString | ( | IN const char * | val | ) | [static] |
Definition at line 61 of file manager.cpp.
static int gamepad::getDpadFromPot | ( | IN SourceDevice * | device, | |
IN int | idx | |||
) | [static] |
Definition at line 80 of file manager.cpp.
static bool gamepad::potMoved | ( | IN SourceDevice * | device, | |
IN int | idx | |||
) | [static] |
Definition at line 102 of file manager.cpp.
static nstream::eIterationFlag gamepad::loadFilesCallback | ( | IN nstream::Entry * | entry, | |
IN void * | context | |||
) | [static] |
Definition at line 122 of file manager.cpp.
static bool gamepad::sourceAndMapInUse | ( | IN Manager * | mgr, | |
IN const char * | deviceId, | |||
IN const char * | mappingId | |||
) | [static] |
Definition at line 180 of file manager.cpp.
void gamepad::getRecommendedMappings | ( | IN Manager * | manager, | |
IN SourceDevice * | device, | |||
OUT VecString & | mapIds | |||
) |
helper method to return a list of recommended mappings for a given source device.
Note that there could be zero to many recommended mappings!
NOTE: this helper is very simple and inefficient. It is intended to be called very infrequently (such as when a user plugs in a new device).
void gamepad::autoconfigureGamepads | ( | IN Manager * | manager | ) |
helper method to autoconfigure any gamepads possible based on recommended mappings.
NOTE: if you use this, make sure you give the user a chance to correct or remove any autoconfigured gamepads! Some manufacturers may change how their devices, breaking older versions of gamepad libraries etc.
This is also inefficient. Only call when new source devices are discovered.
static const instruct_rec_t* gamepad::getInstructionRecord | ( | IN eInstruction | instruct | ) | [static] |
Definition at line 85 of file gamepad-config.cpp.
void gamepad::addToMultimap | ( | IN priority_map_t & | map, | |
IN int | key, | |||
IN const char * | val | |||
) |
Definition at line 102 of file gamepad-config.cpp.
static bool gamepad::notEqual | ( | IN const char * | string1, | |
IN const char * | string2A, | |||
IN const char * | string2B | |||
) | [static] |
Definition at line 118 of file gamepad-config.cpp.
static int gamepad::addHints | ( | IN dialog::ContainerRequest & | req, | |
IN i18n::Manager * | mgr | |||
) | [static] |
Definition at line 55 of file gamepad-config-dialog.cpp.
static const char* gamepad::getTypeString | ( | IN Manager * | mgr, | |
IN const Type * | type, | |||
IN const std::string & | locale, | |||
OUT char * | buffer, | |||
IN int | bufsize | |||
) | [static] |
Definition at line 81 of file gamepad-config-dialog.cpp.
static void gamepad::addFloat | ( | IN dictionary_t & | data, | |
IN const char * | key, | |||
IN float | val | |||
) | [static] |
Definition at line 52 of file gamepad-vgfx.cpp.
static bool gamepad::getField | ( | IN vgfx::ObjectMap * | map, | |
IN const char * | id, | |||
IN const char * | field, | |||
OUT std::string & | value | |||
) | [static] |
Definition at line 72 of file gamepad-vgfx.cpp.
static void gamepad::addOrMoveObject | ( | IN vgfx::ObjectMap * | map, | |
IN vgfx::Drawer * | drawer, | |||
IN const char * | baseId, | |||
IN const char * | newId, | |||
IN float | x, | |||
IN float | y, | |||
IN float | phi | |||
) | [static] |
Definition at line 110 of file gamepad-vgfx.cpp.
static void gamepad::removeObject | ( | IN vgfx::ObjectMap * | map, | |
IN const char * | id | |||
) | [static] |
Definition at line 164 of file gamepad-vgfx.cpp.
static float gamepad::getFloat | ( | IN const pot_value_t & | pv | ) | throw () [static] |
Definition at line 55 of file gamepad-test-element.cpp.
static bool gamepad::test_bit | ( | IN int | bit, | |
IN const byte_t * | array | |||
) | [static] |
Definition at line 58 of file linux-joystick.cpp.
static void gamepad::dumpCapabilities | ( | IN const byte_t * | pb | ) | throw () [static] |
Definition at line 80 of file linux-joystick.cpp.
static int gamepad::getIndex | ( | IN int | value, | |
IN const int * | map, | |||
IN int | size | |||
) | [static] |
Definition at line 106 of file linux-joystick.cpp.
static bool gamepad::isInputEntry | ( | IN smart_fd & | fd | ) | [static] |
Definition at line 152 of file linux-input.cpp.
const char* gamepad::getInputIndex | ( | IN const char * | path | ) |
Definition at line 197 of file linux-input.cpp.
static void gamepad::refreshLinuxInputDevicePaths | ( | void | ) | [static] |
Definition at line 613 of file linux-input.cpp.
smart_ptr<SourceDevice> gamepad::getLinuxInputSourceDevice | ( | IN const char * | path, | |
IN bool | wantForceFeedback | |||
) |
Definition at line 658 of file linux-input.cpp.
static void gamepad::diagnoseError | ( | void | ) | [inline, static] |
Definition at line 132 of file linux-joystick.cpp.
static bool gamepad::isJoystickEntry | ( | IN smart_fd & | fd | ) | [static] |
Definition at line 143 of file linux-joystick.cpp.
const char* gamepad::getJoystickIndex | ( | IN const char * | path | ) |
Definition at line 208 of file linux-joystick.cpp.
static void gamepad::refreshLinuxJoystickDevicePaths | ( | void | ) | [static] |
Definition at line 457 of file linux-joystick.cpp.
smart_ptr<SourceDevice> gamepad::getLinuxJoystickSourceDevice | ( | IN const char * | path | ) |
Definition at line 503 of file linux-joystick.cpp.
static int gamepad::getIntDigits | ( | IN int | x | ) | throw () [static] |
Definition at line 23 of file sd-test.cpp.
static int gamepad::getPotDigits | ( | IN int | min, | |
IN int | max | |||
) | throw () [static] |
Definition at line 44 of file sd-test.cpp.
static void gamepad::printPot | ( | IN int | idx, | |
IN const gamepad::pot_value_t & | pv | |||
) | throw () [static] |
Definition at line 65 of file sd-test.cpp.
void gamepad::testSourceDeviceFactory | ( | IN SourceDeviceFactory * | factory | ) |
Given a SourceDeviceFactory object, this routine will allow a human user to test the factory and devices it exposes.
Intended for diagnostic and test programs only.
const odf_type_entry_t gamepad::s_odfTypes[] [static] |
{ { DIDFT_ABSAXIS , "ABSAXIS" }, { DIDFT_ALIAS , "ALIAS" }, { DIDFT_AXIS , "AXIS" }, { DIDFT_BUTTON , "BUTTON" }, { DIDFT_COLLECTION , "COLLECTION" }, { DIDFT_FFACTUATOR , "FFACTUATOR" }, { DIDFT_FFEFFECTTRIGGER , "FFEFFECTTRIGGER" }, { DIDFT_NOCOLLECTION , "NOCOLLECTION" }, { DIDFT_NODATA , "NODATA" }, { DIDFT_OUTPUT , "OUTPUT" }, { DIDFT_POV , "POV" }, { DIDFT_PSHBUTTON , "PSHBUTTON" }, { DIDFT_RELAXIS , "RELAXIS" }, { DIDFT_TGLBUTTON , "TGLBUTTON" }, { DIDFT_VENDORDEFINED , "VENDORDEFINED" }, { 0, NULL } }
Definition at line 46 of file di-diagnostics.cpp.
const odf_flag_entry_t gamepad::s_odfFlags[] [static] |
{ { DIDOI_ASPECTACCEL , "ASPECTACCEL" }, { DIDOI_ASPECTFORCE , "ASPECTFORCE" }, { DIDOI_ASPECTPOSITION , "ASPECTPOSITION" }, { DIDOI_ASPECTVELOCITY , "ASPECTVELOCITY" }, { 0, NULL } }
Definition at line 76 of file di-diagnostics.cpp.
const dc_flag_entry_t gamepad::s_dcFlags[] [static] |
{ { DIDC_ALIAS , "ALIAS" }, { DIDC_ATTACHED , "ATTACHED" }, { DIDC_DEADBAND , "DEADBAND" }, { DIDC_EMULATED , "EMULATED" }, { DIDC_FORCEFEEDBACK , "FORCEFEEDBACK" }, { DIDC_FFFADE , "FFFADE" }, { DIDC_FFATTACK , "FFATTACK" }, { DIDC_HIDDEN , "HIDDEN" }, { DIDC_PHANTOM , "PHANTOM" }, { DIDC_POLLEDDATAFORMAT , "POLLEDDATAFORMAT" }, { DIDC_POLLEDDEVICE , "POLLEDDEVICE" }, { DIDC_POSNEGCOEFFICIENTS , "POSNEGCOEFFICIENTS" }, { DIDC_POSNEGSATURATION , "POSNEGSATURATION" }, { DIDC_SATURATION , "SATURATION" }, { DIDC_STARTDELAY , "STARTDELAY" }, { 0, NULL } }
Definition at line 95 of file di-diagnostics.cpp.
const guid_entry_t gamepad::s_guids[] [static] |
{ { GUID_XAxis , "GUID_" "XAxis" , &GUID_XAxis }, { GUID_YAxis , "GUID_" "YAxis" , &GUID_YAxis }, { GUID_ZAxis , "GUID_" "ZAxis" , &GUID_ZAxis }, { GUID_RxAxis , "GUID_" "RxAxis" , &GUID_RxAxis }, { GUID_RyAxis , "GUID_" "RyAxis" , &GUID_RyAxis }, { GUID_RzAxis , "GUID_" "RzAxis" , &GUID_RzAxis }, { GUID_Slider , "GUID_" "Slider" , &GUID_Slider }, { GUID_Button , "GUID_" "Button" , &GUID_Button }, { GUID_Key , "GUID_" "Key" , &GUID_Key }, { GUID_POV , "GUID_" "POV" , &GUID_POV }, { GUID_Unknown , "GUID_" "Unknown" , &GUID_Unknown }, { GUID_XAxis, NULL, NULL } }
Definition at line 126 of file di-diagnostics.cpp.
const int gamepad::s_FortyFiveDegreesValue = 4500 [static] |
Definition at line 41 of file direct-input.cpp.
const char* gamepad::s_extension = "gamepad" |
Definition at line 51 of file gamepad-type.cpp.
const input_entry_t gamepad::s_inputTypes[] [static] |
{ { eInput_Button, "button", "button" }, { eInput_Joystick, "joystick", "joystick" }, { eInput_Pot, "potentiometer", "pot" }, { eInput_Dpad, "directionalPad", "dpad" }, { eInput_Invalid, NULL, NULL } }
Definition at line 61 of file gamepad-type.cpp.
const float gamepad::s_buttonRatio = 0.2 [static] |
Definition at line 44 of file manager.cpp.
const float gamepad::s_4potRatio = 0.08 [static] |
Definition at line 46 of file manager.cpp.
const char* gamepad::s_gamepadExtension = "gamepad" [static] |
Definition at line 49 of file manager.cpp.
const char* gamepad::s_mappingExtension = "map" [static] |
Definition at line 50 of file manager.cpp.
const instruct_rec_t gamepad::s_instructionRecords[] [static] |
{ { eInstruction_Calibrate , "calibrate" } , { eInstruction_ButtonPress , "buttonPress" } , { eInstruction_DpadCenter , "dpadCenter" } , { eInstruction_DpadLeft , "dpadLeft" } , { eInstruction_DpadRight , "dpadRight" } , { eInstruction_DpadUp , "dpadUp" } , { eInstruction_DpadDown , "dpadDown" } , { eInstruction_JoyCenter , "joyCenter" } , { eInstruction_JoyLeft , "joyLeft" } , { eInstruction_JoyUp , "joyUp" } , { eInstruction_PotCenter , "potCenter" } , { eInstruction_PotExtreme , "potExtreme" } , { eInstruction_Invalid, NULL } }
Definition at line 51 of file gamepad-config.cpp.
const int gamepad::s_interleave = 8 [static] |
Definition at line 73 of file gamepad-config.cpp.
const float gamepad::s_buttonThreshold = 0.95 [static] |
Definition at line 75 of file gamepad-config.cpp.
const char* gamepad::s_defaultLocale = "en_US.UTF-8" [static] |
Definition at line 40 of file gamepad-config-dialog.cpp.
const char* gamepad::s_widthString = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" [static] |
Definition at line 43 of file gamepad-config-dialog.cpp.
const char* gamepad::s_simpleElementName = "gamepadVgfxSimple" [static] |
Definition at line 39 of file gamepad-simple-element.cpp.
const char* gamepad::s_null = "(null)" [static] |
Definition at line 41 of file gamepad-simple-element.cpp.
const char* gamepad::s_testElementName = "gamepadVgfxTest" [static] |
Definition at line 44 of file gamepad-test-element.cpp.
const char* gamepad::s_devicePath = "/dev/input/" [static] |
Definition at line 40 of file linux-input.cpp.
static const char * gamepad::s_prefix = "LinuxInput" [static] |
Definition at line 41 of file linux-input.cpp.
static SetString gamepad::s_devicePaths [static] |
Definition at line 43 of file linux-input.cpp.
const int gamepad::s_maxName = 80 |
Definition at line 43 of file linux-joystick.cpp.