Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Input.h File Reference

Go to the source code of this file.

Namespaces

namespace  Ult
 

Enumerations

enum  Ult::INPUT_BUTTON {
  Ult::BUTTON_LEFT_SHOULDER = 1 , Ult::BUTTON_RIGHT_SHOULDER , Ult::BUTTON_LEFT_TRIGGER , Ult::BUTTON_RIGHT_TRIGGER ,
  Ult::BUTTON_LEFT_THUMB , Ult::BUTTON_RIGHT_THUMB , Ult::BUTTON_START , Ult::BUTTON_BACK ,
  Ult::BUTTON_ARROW_UP , Ult::BUTTON_ARROW_DOWN , Ult::BUTTON_ARROW_LEFT , Ult::BUTTON_ARROW_RIGHT ,
  Ult::BUTTON_A , Ult::BUTTON_B , Ult::BUTTON_X , Ult::BUTTON_Y ,
  Ult::BUTTON_MOUSE_LEFT , Ult::BUTTON_MOUSE_RIGHT , Ult::BUTTON_0 , Ult::BUTTON_1 ,
  Ult::BUTTON_2 , Ult::BUTTON_3 , Ult::BUTTON_4 , Ult::BUTTON_5 ,
  Ult::BUTTON_6 , Ult::BUTTON_7 , Ult::BUTTON_8 , Ult::BUTTON_9 ,
  Ult::BUTTON_C , Ult::BUTTON_D , Ult::BUTTON_E , Ult::BUTTON_F ,
  Ult::BUTTON_G , Ult::BUTTON_H , Ult::BUTTON_I , Ult::BUTTON_J ,
  Ult::BUTTON_K , Ult::BUTTON_L , Ult::BUTTON_M , Ult::BUTTON_N ,
  Ult::BUTTON_O , Ult::BUTTON_P , Ult::BUTTON_Q , Ult::BUTTON_R ,
  Ult::BUTTON_S , Ult::BUTTON_T , Ult::BUTTON_U , Ult::BUTTON_V ,
  Ult::BUTTON_W , Ult::BUTTON_Z , Ult::BUTTON_ESCAPE , Ult::BUTTON_SPACE ,
  Ult::BUTTON_ENTER , Ult::BUTTON_TOTAL_BUTTONS
}
 

Functions

void Ult::InitInput ()
 
void Ult::UpdateInput ()
 
void Ult::DeinitInput ()
 
bool Ult::IsButtonDown (const INPUT_BUTTON btn)
 
bool Ult::IsButtonUp (const INPUT_BUTTON btn, const bool wasDown)
 
void Ult::GetMousePosition (int *mx, int *my)
 
bool Ult::GetWindowResize (int *width, int *height)
 

Variables

bool Ult::gShouldQuit = false