Gateware Libraries  R6.5A
Beta Build
GInput.h
1 #ifndef GINPUT_H
2 #define GINPUT_H
3 
15 #include "../G_Core/GSingleThreaded.h"
17 #include "../G_System/GKeyDefines.h"
18 
20 namespace GW
21 {
23  namespace SYSTEM
24  {
26  static const GUUIID GInputUUIID =
27  {
28  0x5a546d89, 0x7c6f, 0x46b5,{ 0xb6, 0x2b, 0xff, 0x5b, 0x27, 0xce, 0x6, 0xf5 }
29  };
30 
32 
37  {
38 
39  public:
40 
42 
52  virtual GReturn GetState(int _keyCode, float& _outState) = 0;
53 
55 
62  virtual GReturn GetMouseDelta(float& _x, float& _y) = 0;
63 
65 
72  virtual GReturn GetMousePosition(float& _x, float& _y) = 0;
73 
75 
82  virtual GReturn GetKeyMask(unsigned int& _outKeyMask) = 0;
83  };
84 
86 
100  GATEWARE_EXPORT_IMPLICIT GReturn CreateGInput(void* _windowHandle, unsigned int _handleSize, GInput** _outInput);
101  } // end SYSTEM namespace
102 } // end GW namespace
103 
104 #endif
virtual GReturn GetMousePosition(float &_x, float &_y)=0
Get the most recent mouse position.
virtual GReturn GetState(int _keyCode, float &_outState)=0
Get the current state of any key.
virtual GReturn GetKeyMask(unsigned int &_outKeyMask)=0
Get the key mask.
virtual GReturn GetMouseDelta(float &_x, float &_y)=0
Get the change in mouse position.
This interface is only used to label and query interfaces which are not designed internally to suppor...
Definition: GSingleThreaded.h:31
A single threaded input library.
Definition: GInput.h:36
The core namespace to which all Gateware interfaces/structures/defines must belong.
Definition: GAudio.h:20
GATEWARE_EXPORT_IMPLICIT GReturn CreateGInput(void *_windowHandle, unsigned int _handleSize, GInput **_outInput)
Creates a GInput Object.
GReturn
Listing of common error codes returned by Gateware functions.
Definition: GDefines.h:53