R-Type
R-Type project
KapEngine::Events::Input::Axis Struct Reference

#include <Input.hpp>

Public Member Functions

 Axis (std::string _name)
 

Public Attributes

std::string name
 
Key positiveButton
 
Key negativeButton
 
Key altPositiveButton
 
Key altNegativeButton
 
AxisDetectMode detectMode
 
int joystickId
 
int gamepadId
 
bool invert
 

Detailed Description

Axis allow you to have several inputs for a specific action like vertical move with W ans S.

Parameters
nameaxis name
positiveButtoninput giving value 1
altPositiveButtonalternative input giving value 1
negativeButtoninput giving value -1
altNegativeButtonalternative input giving value -1
joystickIdjoystick index of gamepad (if joystick set to -1 then no joystick is assigned)
gamepadIdgamepad index. If 1 joystoick is defined but gamepad is set to -1, then all gamepad gonna be checked (2 gamepads)
invertinvert result

The documentation for this struct was generated from the following file: