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

Public Member Functions

 VirtualGamepad (Window &window, VirtualGamepadConfig config)
 
bool init ()
 
void clean_up ()
 
void flip ()
 
sig::signal< void(int)> & signal_button_down ()
 
sig::signal< void(int)> & signal_button_up ()
 
sig::signal< void(HatPosition)> & signal_hat_changed ()
 
sig::signal< void(JoystickAxis, int)> & signal_axis_changed ()
 
AABB button_bounds (int button)
 
 S_DEFINE_PROPERTY (stage, &VirtualGamepad::stage_)
 

Friends

class Window
 

Additional Inherited Members

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

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