Polyphase Game Engine
Loading...
Searching...
No Matches
InputDevices.h File Reference
#include "Input/Input.h"
#include <string.h>
#include <vector>

Go to the source code of this file.

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 IsPointerJustUp (int32_t pointer=0)
 
bool IsPointerJustDown (int32_t pointer=0)
 
bool IsPointerDown (int32_t pointer=0)
 
void GetTouchPosition (int32_t &touchX, int32_t &touchY, int32_t touch)
 
void GetTouchPositionNormalized (float &fTouchX, float &fTouchY, int32_t touch)
 
void GetPointerPosition (int32_t &pointerX, int32_t &pointerY, int32_t pointer=0)
 
void GetPointerPositionNormalized (float &fPointerX, float &fPointerY, int32_t pointer=0)
 
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 = 0 
)

◆ GetPointerPositionNormalized()

void GetPointerPositionNormalized ( float &  fPointerX,
float &  fPointerY,
int32_t  pointer = 0 
)

◆ GetScrollWheelDelta()

int32_t GetScrollWheelDelta ( )

◆ GetTouchPosition()

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

◆ GetTouchPositionNormalized()

void GetTouchPositionNormalized ( float &  fTouchX,
float &  fTouchY,
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 = 0)

◆ IsPointerJustDown()

bool IsPointerJustDown ( int32_t  pointer = 0)

◆ IsPointerJustUp()

bool IsPointerJustUp ( int32_t  pointer = 0)

◆ IsShiftDown()

bool IsShiftDown ( )

◆ IsTouchDown()

bool IsTouchDown ( int32_t  touch)