Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::InputAxis Class Reference
Inheritance diagram for smlt::InputAxis:
smlt::RefCounted< InputAxis > smlt::TwoPhaseConstructed

Public Member Functions

 InputAxis (const std::string &name)
void set_positive_keyboard_key (const KeyboardCode &key)
void set_negative_keyboard_key (const KeyboardCode &key)
KeyboardCode positive_keyboard_key () const
KeyboardCode negative_keyboard_key () const
void set_keyboard_source (KeyboardID keyboard)
KeyboardID keyboard_source () const
void set_positive_mouse_button (MouseButtonID button)
void set_negative_mouse_button (MouseButtonID button)
MouseButtonID positive_mouse_button () const
MouseButtonID negative_mouse_button () const
void set_mouse_source (MouseID mouse)
MouseID mouse_source () const
void set_positive_joystick_button (JoystickButton button)
void set_negative_joystick_button (JoystickButton button)
JoystickButton positive_joystick_button () const
JoystickButton negative_joystick_button () const
void set_joystick_source (GameControllerIndex joystick)
GameControllerIndex joystick_source () const
void set_mouse_axis (MouseAxis axis)
void set_joystick_axis (JoystickAxis axis)
void set_joystick_hat_axis (JoystickHatID hat, JoystickHatAxis axis)
void set_force (float f)
void set_return_speed (float ret)
const std::string & name () const
const AxisType & type () const
float value (DeadZoneBehaviour dead_zone_behaviour=DEAD_ZONE_BEHAVIOUR_RADIAL) const
void set_dead_zone (float v)
float dead_zone () const
void set_inversed (bool value=true)
- Public Member Functions inherited from smlt::TwoPhaseConstructed
virtual bool init ()
virtual void clean_up ()


class InputManager

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< InputAxis >
typedef std::shared_ptr< InputAxisptr
typedef std::weak_ptr< InputAxiswptr
- Static Public Member Functions inherited from smlt::RefCounted< InputAxis >
static RefCounted< InputAxis >::ptr create (Args &&... args)
static RefCounted< InputAxis >::ptr create ()
- Protected Member Functions inherited from smlt::RefCounted< InputAxis >
 RefCounted (Args &&...)

The documentation for this class was generated from the following files: