Optibits
Loading...
Searching...
No Matches
Optibits::Input Class Reference
Inheritance diagram for Optibits::Input:
Optibits::Noncopyable

Classes

struct  Impl
 

Public Member Functions

 Input (void *window)
 
bool feedSdlEvent (void *event)
 
double mouseX () const
 
double mouseY () const
 
void setMousePosition (double x, double y)
 
void update ()
 

Static Public Member Functions

static std::string idToChar (Key key)
 
static Key charToId (std::string ch)
 
static std::string keyName (Key key)
 
static std::string gamepadName (int idx)
 
static bool down (Key key)
 
static double axis (Key key)
 

Public Attributes

std::function< void(Key)> onButtonDown
 
std::function< void(Key)> onButtonUp
 

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