SuperTuxKart
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Enumerations | Variables
Input

Contains classes for input management (keyboard and gamepad) More...

Classes

class  DeviceManager
 This class holds the list of all known devices (ands their configurations), as well as the list of currently plugged (used) devices. More...
 
class  GamePadDevice
 specialisation of Inputdevice for gamepad type devices More...
 
struct  Input
 
class  InputDevice
 base class for input devices More...
 
class  InputManager
 Class to handle input. More...
 
class  KeyboardDevice
 specialisation of InputDevice for keyboard type devices More...
 

Enumerations

enum  PlayerAction {
  PA_BEFORE_FIRST = -1, PA_STEER_LEFT = 0, PA_STEER_RIGHT, PA_ACCEL,
  PA_BRAKE, PA_NITRO, PA_DRIFT, PA_RESCUE,
  PA_FIRE, PA_LOOK_BACK, PA_PAUSE_RACE, PA_MENU_UP,
  PA_MENU_DOWN, PA_MENU_LEFT, PA_MENU_RIGHT, PA_MENU_SELECT,
  PA_MENU_CANCEL, PA_COUNT
}
 types of input events / what actions the players can do
 
enum  DeviceType { DT_KEYBOARD, DT_GAMEPAD }
 Input device type.
 

Variables

static std::string KartActionStrings [PA_COUNT]
 human-readable strings for each PlayerAction More...
 

Detailed Description

Contains classes for input management (keyboard and gamepad)

Variable Documentation

std::string KartActionStrings[PA_COUNT]
static
Initial value:
= {std::string("steerLeft"),
std::string("steerRight"),
std::string("accel"),
std::string("brake"),
std::string("nitro"),
std::string("drift"),
std::string("rescue"),
std::string("fire"),
std::string("lookBack"),
std::string("pauserace"),
std::string("menuUp"),
std::string("menuDown"),
std::string("menuLeft"),
std::string("menuRight"),
std::string("menuSelect"),
std::string("menuCancel")
}

human-readable strings for each PlayerAction