3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Input Namespace Reference

Classes

class  Keyboard
 Represents the keyboard input state. More...
class  Mouse
 Represents the mouse input state. More...

Enumerations

enum  ButtonState : byte { Released = 0 , Pressed = 1 }
enum  Key : byte {
  None = 0 , LeftMouseButton = 0x01 , RightMouseButton = 0x02 , Cancel = 0x03 ,
  MiddleMouseButton = 0x04 , X1MouseButton = 0x05 , X2MouseButton = 0x06 , Backspace = 0x08 ,
  Tab = 0x09 , Clear = 0x0C , Enter = 0x0D , Shift = 0x10 ,
  Ctrl = 0x11 , Alt = 0x12 , Pause = 0x13 , CapsLock = 0x14 ,
  ESC = 0x1B , Space = 0x20 , PageUp = 0x21 , PageDown = 0x22 ,
  End = 0x23 , Home = 0x24 , LeftArrow = 0x25 , UpArrow = 0x26 ,
  RightArrow = 0x27 , DownArrow = 0x28 , PrintScreen = 0x2C , K0 = 0x30 ,
  K1 , K2 , K3 , K4 ,
  K5 , K6 , K7 , K8 ,
  K9 , A = 0x41 , B , C ,
  D , E , F , G ,
  H , I , J , K ,
  L , M , N , O ,
  P , Q , R , S ,
  T , U , V , W ,
  X , Y , Z , Num0 = 0x60 ,
  Num1 , Num2 , Num3 , Num4 ,
  Num5 , Num6 , Num7 , Num8 ,
  Num9 , NumPlus = 0x6B , NumSeparator = 0x6C , NumMinus = 0x6D ,
  NumDecimal = 0x6E , NumDivide = 0x6F , F1 = 0x70 , F2 ,
  F3 , F4 , F5 , F6 ,
  F7 , F8 , F9 , F10 ,
  F11 , F12 , F13 , F14 ,
  F15 , F16 , F17 , F18 ,
  F19 , F20 , F21 , F22 ,
  F23 , F24 , LeftShift = 0xA0 , RightShift ,
  LeftCtrl , RightCtrl , LeftAlt , RightAlt ,
  Plus = 0xBB , Comma = 0xBC , Minus = 0xBD , Period = 0xBE ,
  QuestionMark = 0xBF , Tilde = 0xC0
}
enum  KeyState : byte { Up = 0 , Down = 1 }
enum class  ButtonState : bool
 Represents the state of a button (pressed or released). More...
enum class  Key : uint8_t
enum class  KeyState : bool
 The state of a keyboard key. More...

Functions

E3DRSP_INPUT_EXPORT Key KeyFromVirtualKeyCode (const std::string &keyName)
E3DRSP_INPUT_EXPORT uint8_t KeyIntFromVirtualKeyCode (const std::string &keyName)

Enumeration Type Documentation

◆ ButtonState [1/2]

Enumerator
Released 
Pressed 

◆ ButtonState [2/2]

Represents the state of a button (pressed or released).

◆ Key [1/2]

Enumerator
None 
LeftMouseButton 
RightMouseButton 
Cancel 
MiddleMouseButton 
X1MouseButton 
X2MouseButton 
Backspace 
Tab 
Clear 
Enter 
Shift 
Ctrl 
Alt 
Pause 
CapsLock 
ESC 
Space 
PageUp 
PageDown 
End 
Home 
LeftArrow 
UpArrow 
RightArrow 
DownArrow 
PrintScreen 
K0 
K1 
K2 
K3 
K4 
K5 
K6 
K7 
K8 
K9 
A 
B 
C 
D 
E 
F 
G 
H 
I 
J 
K 
L 
M 
N 
O 
P 
Q 
R 
S 
T 
U 
V 
W 
X 
Y 
Z 
Num0 
Num1 
Num2 
Num3 
Num4 
Num5 
Num6 
Num7 
Num8 
Num9 
NumPlus 
NumSeparator 
NumMinus 
NumDecimal 
NumDivide 
F1 
F2 
F3 
F4 
F5 
F6 
F7 
F8 
F9 
F10 
F11 
F12 
F13 
F14 
F15 
F16 
F17 
F18 
F19 
F20 
F21 
F22 
F23 
F24 
LeftShift 
RightShift 
LeftCtrl 
RightCtrl 
LeftAlt 
RightAlt 
Plus 
Comma 
Minus 
Period 
QuestionMark 
Tilde 

◆ Key [2/2]

enum class Engine3DRadSpace::Input::Key : uint8_t
strong

◆ KeyState [1/2]

Enumerator
Up 
Down 

◆ KeyState [2/2]

The state of a keyboard key.

Function Documentation

◆ KeyFromVirtualKeyCode()

Key Engine3DRadSpace::Input::KeyFromVirtualKeyCode ( const std::string & keyName)

◆ KeyIntFromVirtualKeyCode()

uint8_t Engine3DRadSpace::Input::KeyIntFromVirtualKeyCode ( const std::string & keyName)