Polyphase Game Engine
Loading...
Searching...
No Matches
InputDevices.cpp File Reference
#include "InputDevices.h"
#include "Log.h"
#include "Engine.h"
#include "Maths.h"
#include <string.h>
#include <ctype.h>
#include "Assertion.h"
#include "Input/Input.h"

Functions

bool IsKeyDown (int32_t key)
 
bool IsKeyJustDownRepeat (int32_t key)
 
bool IsKeyJustDown (int32_t key)
 
bool IsKeyJustUp (int32_t key)
 
bool IsControlDown ()
 
bool IsShiftDown ()
 
bool IsAltDown ()
 
void ClearControlDown ()
 
void ClearShiftDown ()
 
void ClearAltDown ()
 
bool IsMouseButtonDown (int32_t button)
 
bool IsMouseButtonJustDown (int32_t button)
 
bool IsMouseButtonJustUp (int32_t button)
 
void GetMousePosition (int32_t &mouseX, int32_t &mouseY)
 
int32_t GetScrollWheelDelta ()
 
bool IsTouchDown (int32_t touch)
 
bool IsPointerDown (int32_t pointer)
 
bool IsPointerJustUp (int32_t pointer)
 
bool IsPointerJustDown (int32_t pointer)
 
void GetTouchPosition (int32_t &touchX, int32_t &touchY, int32_t touch)
 
void GetTouchPositionNormalized (float &touchX, float &touchY, int32_t touch)
 
void GetPointerPosition (int32_t &pointerX, int32_t &pointerY, int32_t pointer)
 
void GetPointerPositionNormalized (float &pointerX, float &pointerY, int32_t pointer)
 
bool IsGamepadButtonDown (int32_t gamepadButton, int32_t gamepadIndex)
 
bool IsGamepadButtonJustDown (int32_t gamepadButton, int32_t gamepadIndex)
 
bool IsGamepadButtonJustUp (int32_t gamepadButton, int32_t gamepadIndex)
 
float GetGamepadAxisValue (int32_t gamepadAxis, int32_t gamepadIndex)
 
GamepadType GetGamepadType (int32_t gamepadIndex)
 
bool IsGamepadConnected (int32_t gamepadIndex)
 

Function Documentation

◆ ClearAltDown()

void ClearAltDown ( )

◆ ClearControlDown()

void ClearControlDown ( )

◆ ClearShiftDown()

void ClearShiftDown ( )

◆ GetGamepadAxisValue()

float GetGamepadAxisValue ( int32_t  gamepadAxis,
int32_t  gamepadIndex 
)

◆ GetGamepadType()

GamepadType GetGamepadType ( int32_t  gamepadIndex)

◆ GetMousePosition()

void GetMousePosition ( int32_t &  mouseX,
int32_t &  mouseY 
)

◆ GetPointerPosition()

void GetPointerPosition ( int32_t &  pointerX,
int32_t &  pointerY,
int32_t  pointer 
)

◆ GetPointerPositionNormalized()

void GetPointerPositionNormalized ( float &  pointerX,
float &  pointerY,
int32_t  pointer 
)

◆ GetScrollWheelDelta()

int32_t GetScrollWheelDelta ( )

◆ GetTouchPosition()

void GetTouchPosition ( int32_t &  touchX,
int32_t &  touchY,
int32_t  touch 
)

◆ GetTouchPositionNormalized()

void GetTouchPositionNormalized ( float &  touchX,
float &  touchY,
int32_t  touch 
)

◆ IsAltDown()

bool IsAltDown ( )

◆ IsControlDown()

bool IsControlDown ( )

◆ IsGamepadButtonDown()

bool IsGamepadButtonDown ( int32_t  gamepadButton,
int32_t  gamepadIndex 
)

◆ IsGamepadButtonJustDown()

bool IsGamepadButtonJustDown ( int32_t  gamepadButton,
int32_t  gamepadIndex 
)

◆ IsGamepadButtonJustUp()

bool IsGamepadButtonJustUp ( int32_t  gamepadButton,
int32_t  gamepadIndex 
)

◆ IsGamepadConnected()

bool IsGamepadConnected ( int32_t  gamepadIndex)

◆ IsKeyDown()

bool IsKeyDown ( int32_t  key)

◆ IsKeyJustDown()

bool IsKeyJustDown ( int32_t  key)

◆ IsKeyJustDownRepeat()

bool IsKeyJustDownRepeat ( int32_t  key)

◆ IsKeyJustUp()

bool IsKeyJustUp ( int32_t  key)

◆ IsMouseButtonDown()

bool IsMouseButtonDown ( int32_t  button)

◆ IsMouseButtonJustDown()

bool IsMouseButtonJustDown ( int32_t  button)

◆ IsMouseButtonJustUp()

bool IsMouseButtonJustUp ( int32_t  button)

◆ IsPointerDown()

bool IsPointerDown ( int32_t  pointer)

◆ IsPointerJustDown()

bool IsPointerJustDown ( int32_t  pointer)

◆ IsPointerJustUp()

bool IsPointerJustUp ( int32_t  pointer)

◆ IsShiftDown()

bool IsShiftDown ( )

◆ IsTouchDown()

bool IsTouchDown ( int32_t  touch)