YourGameLib
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
input.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yourgame
 
namespace  yourgame::input
 input functions
 

Enumerations

enum  yourgame::input::Source {
  yourgame::input::KEY_UNKNOWN , yourgame::input::KEY_SPACE , yourgame::input::KEY_APOSTROPHE , yourgame::input::KEY_COMMA ,
  yourgame::input::KEY_MINUS , yourgame::input::KEY_PERIOD , yourgame::input::KEY_SLASH , yourgame::input::KEY_0 ,
  yourgame::input::KEY_1 , yourgame::input::KEY_2 , yourgame::input::KEY_3 , yourgame::input::KEY_4 ,
  yourgame::input::KEY_5 , yourgame::input::KEY_6 , yourgame::input::KEY_7 , yourgame::input::KEY_8 ,
  yourgame::input::KEY_9 , yourgame::input::KEY_SEMICOLON , yourgame::input::KEY_EQUAL , yourgame::input::KEY_A ,
  yourgame::input::KEY_B , yourgame::input::KEY_C , yourgame::input::KEY_D , yourgame::input::KEY_E ,
  yourgame::input::KEY_F , yourgame::input::KEY_G , yourgame::input::KEY_H , yourgame::input::KEY_I ,
  yourgame::input::KEY_J , yourgame::input::KEY_K , yourgame::input::KEY_L , yourgame::input::KEY_M ,
  yourgame::input::KEY_N , yourgame::input::KEY_O , yourgame::input::KEY_P , yourgame::input::KEY_Q ,
  yourgame::input::KEY_R , yourgame::input::KEY_S , yourgame::input::KEY_T , yourgame::input::KEY_U ,
  yourgame::input::KEY_V , yourgame::input::KEY_W , yourgame::input::KEY_X , yourgame::input::KEY_Y ,
  yourgame::input::KEY_Z , yourgame::input::KEY_LEFT_BRACKET , yourgame::input::KEY_BACKSLASH , yourgame::input::KEY_RIGHT_BRACKET ,
  yourgame::input::KEY_GRAVE_ACCENT , yourgame::input::KEY_WORLD_1 , yourgame::input::KEY_WORLD_2 , yourgame::input::KEY_ESCAPE ,
  yourgame::input::KEY_ENTER , yourgame::input::KEY_TAB , yourgame::input::KEY_BACKSPACE , yourgame::input::KEY_INSERT ,
  yourgame::input::KEY_DELETE , yourgame::input::KEY_RIGHT , yourgame::input::KEY_LEFT , yourgame::input::KEY_DOWN ,
  yourgame::input::KEY_UP , yourgame::input::KEY_PAGE_UP , yourgame::input::KEY_PAGE_DOWN , yourgame::input::KEY_HOME ,
  yourgame::input::KEY_END , yourgame::input::KEY_CAPS_LOCK , yourgame::input::KEY_SCROLL_LOCK , yourgame::input::KEY_NUM_LOCK ,
  yourgame::input::KEY_PRINT_SCREEN , yourgame::input::KEY_PAUSE , yourgame::input::KEY_F1 , yourgame::input::KEY_F2 ,
  yourgame::input::KEY_F3 , yourgame::input::KEY_F4 , yourgame::input::KEY_F5 , yourgame::input::KEY_F6 ,
  yourgame::input::KEY_F7 , yourgame::input::KEY_F8 , yourgame::input::KEY_F9 , yourgame::input::KEY_F10 ,
  yourgame::input::KEY_F11 , yourgame::input::KEY_F12 , yourgame::input::KEY_F13 , yourgame::input::KEY_F14 ,
  yourgame::input::KEY_F15 , yourgame::input::KEY_F16 , yourgame::input::KEY_F17 , yourgame::input::KEY_F18 ,
  yourgame::input::KEY_F19 , yourgame::input::KEY_F20 , yourgame::input::KEY_F21 , yourgame::input::KEY_F22 ,
  yourgame::input::KEY_F23 , yourgame::input::KEY_F24 , yourgame::input::KEY_F25 , yourgame::input::KEY_KP_0 ,
  yourgame::input::KEY_KP_1 , yourgame::input::KEY_KP_2 , yourgame::input::KEY_KP_3 , yourgame::input::KEY_KP_4 ,
  yourgame::input::KEY_KP_5 , yourgame::input::KEY_KP_6 , yourgame::input::KEY_KP_7 , yourgame::input::KEY_KP_8 ,
  yourgame::input::KEY_KP_9 , yourgame::input::KEY_KP_DECIMAL , yourgame::input::KEY_KP_DIVIDE , yourgame::input::KEY_KP_MULTIPLY ,
  yourgame::input::KEY_KP_SUBTRACT , yourgame::input::KEY_KP_ADD , yourgame::input::KEY_KP_ENTER , yourgame::input::KEY_KP_EQUAL ,
  yourgame::input::KEY_LEFT_SHIFT , yourgame::input::KEY_LEFT_CONTROL , yourgame::input::KEY_LEFT_ALT , yourgame::input::KEY_LEFT_SUPER ,
  yourgame::input::KEY_RIGHT_SHIFT , yourgame::input::KEY_RIGHT_CONTROL , yourgame::input::KEY_RIGHT_ALT , yourgame::input::KEY_RIGHT_SUPER ,
  yourgame::input::KEY_MENU , yourgame::input::MOUSE_X , yourgame::input::MOUSE_Y , yourgame::input::MOUSE_BUTTON_1 ,
  yourgame::input::MOUSE_BUTTON_2 , yourgame::input::MOUSE_BUTTON_3 , yourgame::input::MOUSE_BUTTON_4 , yourgame::input::MOUSE_BUTTON_5 ,
  yourgame::input::MOUSE_BUTTON_6 , yourgame::input::MOUSE_BUTTON_7 , yourgame::input::MOUSE_BUTTON_8 , yourgame::input::SCROLL_OFFSET_X ,
  yourgame::input::SCROLL_OFFSET_Y , yourgame::input::TOUCH_0_DOWN , yourgame::input::TOUCH_0_X , yourgame::input::TOUCH_0_Y ,
  yourgame::input::TOUCH_1_DOWN , yourgame::input::TOUCH_1_X , yourgame::input::TOUCH_1_Y , yourgame::input::TOUCH_2_DOWN ,
  yourgame::input::TOUCH_2_X , yourgame::input::TOUCH_2_Y , yourgame::input::TOUCH_3_DOWN , yourgame::input::TOUCH_3_X ,
  yourgame::input::TOUCH_3_Y , yourgame::input::TOUCH_4_DOWN , yourgame::input::TOUCH_4_X , yourgame::input::TOUCH_4_Y ,
  yourgame::input::TOUCH_5_DOWN , yourgame::input::TOUCH_5_X , yourgame::input::TOUCH_5_Y , yourgame::input::TOUCH_6_DOWN ,
  yourgame::input::TOUCH_6_X , yourgame::input::TOUCH_6_Y , yourgame::input::TOUCH_7_DOWN , yourgame::input::TOUCH_7_X ,
  yourgame::input::TOUCH_7_Y , yourgame::input::TOUCH_8_DOWN , yourgame::input::TOUCH_8_X , yourgame::input::TOUCH_8_Y ,
  yourgame::input::TOUCH_9_DOWN , yourgame::input::TOUCH_9_X , yourgame::input::TOUCH_9_Y , yourgame::input::GAMEPAD_0_CONNECTED ,
  yourgame::input::GAMEPAD_0_BUTTON_A , yourgame::input::GAMEPAD_0_BUTTON_B , yourgame::input::GAMEPAD_0_BUTTON_X , yourgame::input::GAMEPAD_0_BUTTON_Y ,
  yourgame::input::GAMEPAD_0_BUTTON_LEFT_BUMPER , yourgame::input::GAMEPAD_0_BUTTON_RIGHT_BUMPER , yourgame::input::GAMEPAD_0_BUTTON_BACK , yourgame::input::GAMEPAD_0_BUTTON_START ,
  yourgame::input::GAMEPAD_0_BUTTON_GUIDE , yourgame::input::GAMEPAD_0_BUTTON_LEFT_THUMB , yourgame::input::GAMEPAD_0_BUTTON_RIGHT_THUMB , yourgame::input::GAMEPAD_0_BUTTON_DPAD_UP ,
  yourgame::input::GAMEPAD_0_BUTTON_DPAD_RIGHT , yourgame::input::GAMEPAD_0_BUTTON_DPAD_DOWN , yourgame::input::GAMEPAD_0_BUTTON_DPAD_LEFT , yourgame::input::GAMEPAD_0_AXIS_LEFT_X ,
  yourgame::input::GAMEPAD_0_AXIS_LEFT_Y , yourgame::input::GAMEPAD_0_AXIS_RIGHT_X , yourgame::input::GAMEPAD_0_AXIS_RIGHT_Y , yourgame::input::GAMEPAD_0_AXIS_LEFT_TRIGGER ,
  yourgame::input::GAMEPAD_0_AXIS_RIGHT_TRIGGER , yourgame::input::GAMEPAD_1_CONNECTED , yourgame::input::GAMEPAD_1_BUTTON_A , yourgame::input::GAMEPAD_1_BUTTON_B ,
  yourgame::input::GAMEPAD_1_BUTTON_X , yourgame::input::GAMEPAD_1_BUTTON_Y , yourgame::input::GAMEPAD_1_BUTTON_LEFT_BUMPER , yourgame::input::GAMEPAD_1_BUTTON_RIGHT_BUMPER ,
  yourgame::input::GAMEPAD_1_BUTTON_BACK , yourgame::input::GAMEPAD_1_BUTTON_START , yourgame::input::GAMEPAD_1_BUTTON_GUIDE , yourgame::input::GAMEPAD_1_BUTTON_LEFT_THUMB ,
  yourgame::input::GAMEPAD_1_BUTTON_RIGHT_THUMB , yourgame::input::GAMEPAD_1_BUTTON_DPAD_UP , yourgame::input::GAMEPAD_1_BUTTON_DPAD_RIGHT , yourgame::input::GAMEPAD_1_BUTTON_DPAD_DOWN ,
  yourgame::input::GAMEPAD_1_BUTTON_DPAD_LEFT , yourgame::input::GAMEPAD_1_AXIS_LEFT_X , yourgame::input::GAMEPAD_1_AXIS_LEFT_Y , yourgame::input::GAMEPAD_1_AXIS_RIGHT_X ,
  yourgame::input::GAMEPAD_1_AXIS_RIGHT_Y , yourgame::input::GAMEPAD_1_AXIS_LEFT_TRIGGER , yourgame::input::GAMEPAD_1_AXIS_RIGHT_TRIGGER , yourgame::input::GAMEPAD_2_CONNECTED ,
  yourgame::input::GAMEPAD_2_BUTTON_A , yourgame::input::GAMEPAD_2_BUTTON_B , yourgame::input::GAMEPAD_2_BUTTON_X , yourgame::input::GAMEPAD_2_BUTTON_Y ,
  yourgame::input::GAMEPAD_2_BUTTON_LEFT_BUMPER , yourgame::input::GAMEPAD_2_BUTTON_RIGHT_BUMPER , yourgame::input::GAMEPAD_2_BUTTON_BACK , yourgame::input::GAMEPAD_2_BUTTON_START ,
  yourgame::input::GAMEPAD_2_BUTTON_GUIDE , yourgame::input::GAMEPAD_2_BUTTON_LEFT_THUMB , yourgame::input::GAMEPAD_2_BUTTON_RIGHT_THUMB , yourgame::input::GAMEPAD_2_BUTTON_DPAD_UP ,
  yourgame::input::GAMEPAD_2_BUTTON_DPAD_RIGHT , yourgame::input::GAMEPAD_2_BUTTON_DPAD_DOWN , yourgame::input::GAMEPAD_2_BUTTON_DPAD_LEFT , yourgame::input::GAMEPAD_2_AXIS_LEFT_X ,
  yourgame::input::GAMEPAD_2_AXIS_LEFT_Y , yourgame::input::GAMEPAD_2_AXIS_RIGHT_X , yourgame::input::GAMEPAD_2_AXIS_RIGHT_Y , yourgame::input::GAMEPAD_2_AXIS_LEFT_TRIGGER ,
  yourgame::input::GAMEPAD_2_AXIS_RIGHT_TRIGGER , yourgame::input::GAMEPAD_3_CONNECTED , yourgame::input::GAMEPAD_3_BUTTON_A , yourgame::input::GAMEPAD_3_BUTTON_B ,
  yourgame::input::GAMEPAD_3_BUTTON_X , yourgame::input::GAMEPAD_3_BUTTON_Y , yourgame::input::GAMEPAD_3_BUTTON_LEFT_BUMPER , yourgame::input::GAMEPAD_3_BUTTON_RIGHT_BUMPER ,
  yourgame::input::GAMEPAD_3_BUTTON_BACK , yourgame::input::GAMEPAD_3_BUTTON_START , yourgame::input::GAMEPAD_3_BUTTON_GUIDE , yourgame::input::GAMEPAD_3_BUTTON_LEFT_THUMB ,
  yourgame::input::GAMEPAD_3_BUTTON_RIGHT_THUMB , yourgame::input::GAMEPAD_3_BUTTON_DPAD_UP , yourgame::input::GAMEPAD_3_BUTTON_DPAD_RIGHT , yourgame::input::GAMEPAD_3_BUTTON_DPAD_DOWN ,
  yourgame::input::GAMEPAD_3_BUTTON_DPAD_LEFT , yourgame::input::GAMEPAD_3_AXIS_LEFT_X , yourgame::input::GAMEPAD_3_AXIS_LEFT_Y , yourgame::input::GAMEPAD_3_AXIS_RIGHT_X ,
  yourgame::input::GAMEPAD_3_AXIS_RIGHT_Y , yourgame::input::GAMEPAD_3_AXIS_LEFT_TRIGGER , yourgame::input::GAMEPAD_3_AXIS_RIGHT_TRIGGER , yourgame::input::WINDOW_WIDTH ,
  yourgame::input::WINDOW_WIDTH_INVERSE , yourgame::input::WINDOW_HEIGHT , yourgame::input::WINDOW_HEIGHT_INVERSE , yourgame::input::WINDOW_ASPECT_RATIO ,
  yourgame::input::WINDOW_ASPECT_RATIO_INVERSE , yourgame::input::WINDOW_FULLSCREEN , yourgame::input::POSTPROC_INITIALIZED , yourgame::input::FRAMEBUF_WIDTH ,
  yourgame::input::FRAMEBUF_WIDTH_INVERSE , yourgame::input::FRAMEBUF_HEIGHT , yourgame::input::FRAMEBUF_HEIGHT_INVERSE , yourgame::input::FRAMEBUF_ASPECT_RATIO ,
  yourgame::input::FRAMEBUF_ASPECT_RATIO_INVERSE , yourgame::input::FRAMEBUF_MATCHES_WINDOW , yourgame::input::VSYNC_ON , yourgame::input::MOUSE_CATCHED
}
 identifies the source of an input More...
 

Functions

float yourgame::input::get (Source source)
 returns the current value of the input source source
 
int yourgame::input::geti (Source source)
 returns the current value of the input source source, rounded to int
 
float yourgame::input::getDelta (Source source)
 returns the value delta (current minus last frame value) of the input source source