Karma Engine
Loading...
Searching...
No Matches
Karma::MacInput Class Reference
Inheritance diagram for Karma::MacInput:
Collaboration diagram for Karma::MacInput:

Public Member Functions

void SetEventCallback (const EventCallbackFn &callback, Window *window) override
 
- Public Member Functions inherited from Karma::Input
 Input (InputData &inputDatRef)
 
void SetGamepadMapping ()
 

Protected Member Functions

virtual bool IsKeyPressedImpl (int keycode) override
 
virtual bool IsMouseButtonPressedImpl (int button) override
 
virtual bool IsMouseButtonReleasedImpl (int button) override
 
virtual bool IsControllerButtonPressedImpl (int button, int cID) override
 
virtual float ControllerAxisPivotValImpl (int axis, int cID) override
 
virtual std::pair< float, float > GetMousePositionImpl () override
 
virtual float GetMouseXImpl () override
 
virtual float GetMouseYImpl () override
 
- Protected Member Functions inherited from Karma::Input
const std::list< std::shared_ptr< ControllerDevice > > & GetControllerDevices () const
 
void AddControllerDevice (std::shared_ptr< ControllerDevice > device)
 

Protected Attributes

MacInputData m_Data
 

Additional Inherited Members

- Public Types inherited from Karma::Input
using EventCallbackFn = std::function<void(Event&)>
 
- Static Public Member Functions inherited from Karma::Input
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 ()
 
- Static Protected Member Functions inherited from Karma::Input
static void SetConnectedJoySticks ()
 
- Static Protected Attributes inherited from Karma::Input
static std::list< std::shared_ptr< ControllerDevice > > m_ControllerDevices
 

Member Function Documentation

◆ ControllerAxisPivotValImpl()

float Karma::MacInput::ControllerAxisPivotValImpl ( int axis,
int cID )
overrideprotectedvirtual

Implements Karma::Input.

◆ GetMousePositionImpl()

std::pair< float, float > Karma::MacInput::GetMousePositionImpl ( )
overrideprotectedvirtual

Implements Karma::Input.

◆ GetMouseXImpl()

float Karma::MacInput::GetMouseXImpl ( )
overrideprotectedvirtual

Implements Karma::Input.

◆ GetMouseYImpl()

float Karma::MacInput::GetMouseYImpl ( )
overrideprotectedvirtual

Implements Karma::Input.

◆ IsControllerButtonPressedImpl()

bool Karma::MacInput::IsControllerButtonPressedImpl ( int button,
int cID )
overrideprotectedvirtual

Implements Karma::Input.

◆ IsKeyPressedImpl()

bool Karma::MacInput::IsKeyPressedImpl ( int keycode)
overrideprotectedvirtual

Implements Karma::Input.

◆ IsMouseButtonPressedImpl()

bool Karma::MacInput::IsMouseButtonPressedImpl ( int button)
overrideprotectedvirtual

Implements Karma::Input.

◆ IsMouseButtonReleasedImpl()

bool Karma::MacInput::IsMouseButtonReleasedImpl ( int button)
overrideprotectedvirtual

Implements Karma::Input.

◆ SetEventCallback()

void Karma::MacInput::SetEventCallback ( const EventCallbackFn & callback,
Window * window )
overridevirtual

Implements Karma::Input.


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