#include "gamepad-type.h"
#include "source-device/source-device.h"
Go to the source code of this file.
Classes | |
struct | gamepad::button_map_t |
button mapping information More... | |
struct | gamepad::joystick_t |
a joystick is a 2-axis stick More... | |
struct | gamepad::joystick_map_t |
describes joystick mapping More... | |
struct | gamepad::pot_map_t |
describes a potentiometer mapping More... | |
struct | gamepad::dpad_map_t |
a dpad_map_t describes how to map from low-level SourceDevice events (buttons or potentiometers) into dpad events. More... | |
class | gamepad::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... | |
Namespaces | |
namespace | gamepad |
| |
enum | gamepad::eDpad { gamepad::eDpad_Centered = 0, gamepad::eDpad_Left = 1, gamepad::eDpad_Right = 2, gamepad::eDpad_Up = 4, gamepad::eDpad_Down = 8, gamepad::eDpad_UpLeft = eDpad_Up | eDpad_Left, gamepad::eDpad_UpRight = eDpad_Up | eDpad_Right, gamepad::eDpad_DownLeft = eDpad_Down | eDpad_Left, gamepad::eDpad_DownRight = eDpad_Down | eDpad_Right, gamepad::eDpad_Invalid = 16 } |
the current position of a dpad. More... | |
typedef uint32_t | gamepad::buttons_t |
all button values OR'd together | |
smart_ptr< Map > | gamepad::readMap (IN const Datahash *hash) |
read mapping from a datahash (often a text file) | |
smart_ptr< Datahash > | gamepad::writeMap (IN const Map *map) |
write mapping to a datahash (you can then use Datahash utility methods to write to a stream etc) |