Karma Engine
Loading...
Searching...
No Matches
Karma::Input Class Referenceabstract
Inheritance diagram for Karma::Input:

Public Types

using EventCallbackFn = std::function<void(Event&)>
 

Public Member Functions

 Input (InputData &inputDatRef)
 
virtual void SetEventCallback (const EventCallbackFn &callback, Window *window)=0
 
void SetGamepadMapping ()
 

Static Public Member Functions

static bool IsKeyPressed (int keycode)
 
static bool IsMouseButtonPressed (int button)
 
static bool IsMouseButtonReleased (int button)
 
static bool IsControllerButtonPressed (int button, int cID)
 
static float ControllerAxisPivotVal (int axis, int cID)
 
static std::pair< float, float > GetMousePosition ()
 
static float GetMouseX ()
 
static float GetMouseY ()
 
static InputRegisteringAPI GetAPI ()
 
static void DeInit ()
 
static void Init ()
 
static std::shared_ptr< InputGetInputInstance ()
 
static void DisplayControllerDevices ()
 

Protected Member Functions

virtual bool IsKeyPressedImpl (int keycode)=0
 
virtual bool IsMouseButtonPressedImpl (int button)=0
 
virtual bool IsMouseButtonReleasedImpl (int button)=0
 
virtual bool IsControllerButtonPressedImpl (int button, int cID)=0
 
virtual float ControllerAxisPivotValImpl (int axis, int cID)=0
 
virtual std::pair< float, float > GetMousePositionImpl ()=0
 
virtual float GetMouseXImpl ()=0
 
virtual float GetMouseYImpl ()=0
 
const std::list< std::shared_ptr< ControllerDevice > > & GetControllerDevices () const
 
void AddControllerDevice (std::shared_ptr< ControllerDevice > device)
 

Static Protected Member Functions

static void SetConnectedJoySticks ()
 

Static Protected Attributes

static std::list< std::shared_ptr< ControllerDevice > > m_ControllerDevices
 

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