11 class AnnTriggerObject;
46 bool isPressed()
const;
48 bool isReleased()
const;
50 bool shouldIgnore()
const;
97 int getRelValue()
const;
99 int getAbsValue()
const;
116 void setRelValue(
int rel);
118 void setAbsValue(
int abs);
171 float getRelValue()
const;
173 float getAbsValue()
const;
185 void setRelValue(
int rel);
187 void setAbsValue(
int abs);
202 bool getNorth()
const;
204 bool getSouth()
const;
206 bool getEast()
const;
208 bool getWest()
const;
211 bool getNorthEast()
const;
213 bool getSouthEast()
const;
215 bool getNorthWest()
const;
217 bool getSouthWest()
const;
220 bool isCentred()
const;
249 size_t getNbButtons()
const;
265 size_t getAxisCount()
const;
271 size_t getPovCount()
const;
276 bool isXboxController()
const;
310 AnnVect3 getPointingDirection()
const;
318 size_t getAxisCount()
const;
320 size_t getButtonCount()
const;
322 bool buttonPressed(uint8_t
id)
const;
324 bool buttonReleased(uint8_t
id)
const;
326 bool buttonState(uint8_t
id)
const;
380 bool isWallCollision(
float scalarApprox = 0.0125)
const;
383 bool isGroundCollision(
float scalarApprox = 0.125)
const;
386 bool isCeilingCollision(
float scalarApprox = 0.125)
const;
415 bool getContactStatus()
const;
436 bool isTimeout()
const;
462 void capture()
const;
470 unsigned int getID()
const {
return id; }
file for defining macros used for symbol export regarding the way the OS does things.
Collision between the player and another object.
Internal utility class that store joystick information. RAII the oisJoystick object given to construc...
MouseAxisID
Name and number of axes.
static constexpr float INVALID
A mouse axis information object.
bool ignored
Keyboard event that should be ignored has this flag as "true".
std::vector< AnnControllerAxis > axes
Axis array.
Object for representing a volume that trigger an event.
AnnTimerID tID
Timeout ID.
Namespace containing the totality of Annwvyn components.
Translation of OIS keys code to Annwvyn KeyCode.
An object that exist in the game. Graphically and Potentially Physically.
Represent the axis of an hand controller.
bool xbox
set to true if this is an Xbox controller (We're not using Xinput tho)
std::vector< unsigned short > released
Released event "queue".
std::vector< AnnControllerPov > povs
Pov Array.
unsigned int getID() const
Get the ID if this stick.
std::string vendor
Joystick "vendor" name (generally the brand and model)
AnnHandControllerSide
Identify the controller as "left hand", "right hand" or "invalid hand".
KeyCode::code key
Code of the key this event relate to.
int abs
Absolute value (if applicable)
std::vector< byte > buttons
Button array.
AnnTriggerObject * sender
size_t AnnHandControllerTypeHash
Hash of a string idientifier.
Represent an hand controller tracked by the VR system and that the user is actively using....
MouseButtonId
Name and number of mouse button.
int ButtonId
A joystick event.
OIS::JoyStick * oisJoystick
Joystick object from OIS. Deleted by constructor.
Represent a pad's POV controller.
MouseAxisID id
ID of the axis.
static constexpr ControllerAxisID InvalidStickAxisId
int stickID
Joystick ID for the engine.
Internal utility class that represent a timer.
AnnGameObject * col
Naked pointer to the collider.
A mouse event information object.
std::vector< byte > previousStickButtonStates
Array of "bool" for previous buttons.
bool noRel
True if the there's no "relative" value.
double timeoutTime
Time of timeout.
std::vector< unsigned short > pressed
Pressed event "queue".
bool pressed
Pressed state.
static unsigned int idcounter
The counter.
Collision event between 2 game objects.
AnnHandController * controller
Event Manager : Object that handle the event system.