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

Public Member Functions

void pre_update (float dt)
 
void update (float dt)
 
void _update_mouse_devices (const std::vector< MouseDeviceInfo > &device_info)
 
void _update_keyboard_devices (const std::vector< KeyboardDeviceInfo > &device_info)
 
void _update_joystick_devices (const std::vector< JoystickDeviceInfo > &device_info)
 
void _handle_key_down (KeyboardID keyboard_id, KeyboardCode code)
 
void _handle_key_up (KeyboardID keyboard_id, KeyboardCode code)
 
void _handle_mouse_motion (MouseID mouse_id, uint32_t x, uint32_t y, int32_t xrel, int32_t yrel)
 
void _handle_mouse_down (MouseID mouse_id, MouseButtonID button_id)
 
void _handle_mouse_up (MouseID mouse_id, MouseButtonID button_id)
 
void _handle_joystick_axis_motion (JoystickID joypad_id, JoystickAxis axis, float value)
 
void _handle_joystick_button_down (JoystickID joypad_id, JoystickButton button)
 
void _handle_joystick_button_up (JoystickID joypad_id, JoystickButton button)
 
void _handle_joystick_hat_motion (JoystickID joypad_id, JoystickHatID hat_id, HatPosition position)
 
bool keyboard_key_state (KeyboardID keyboard_id, KeyboardCode code) const
 
bool mouse_button_state (MouseID mouse_id, MouseButtonID button) const
 
float mouse_axis_state (MouseID mouse_id, MouseAxis axis) const
 
Vec2 mouse_position (MouseID mouse_id) const
 
bool joystick_button_state (JoystickID joystick_id, JoystickButton button) const
 
float joystick_axis_state (JoystickID joystick_id, JoystickAxis axis) const
 
HatPosition joystick_hat_state (JoystickID joystick_id, JoystickHatID hat) const
 
std::size_t joystick_count () const
 
std::size_t keyboard_count () const
 
std::size_t mouse_count () const
 
void init_virtual_joypad ()
 
JoystickAxis linked_axis (JoystickID id, JoystickAxis axis)
 
- Public Member Functions inherited from smlt::TwoPhaseConstructed
virtual bool init ()
 
virtual void clean_up ()
 

Additional Inherited Members

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

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