Changed Renamed CTRLS_* to ACTION_* Changed Moved anonymous enum containing ACTION_* into class ControlScheme ~g2k
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#include "keys.h"
|
|
#include "physics.h"
|
|
#include "datatypes.h"
|
|
#include "list.h"
|
|
|
|
namespace OpenArena{
|
|
class ControlScheme
|
|
{
|
|
public:
|
|
enum Action{ACTION_FORWARD, ACTION_BACKWARD, ACTION_LOOKLEFT, ACTION_LOOKRIGHT, ACTION_LOOKUP,
|
|
ACTION_LOOKDOWN, ACTION_MOVELEFT, ACTION_MOVERIGHT, ACTION_MOVEUP, ACTION_MOVEDOWN,
|
|
ACTION_ROLLLEFT, ACTION_ROLLRIGHT, ACTION_FIREPRIMARY, ACTION_FIRESECONDARY,
|
|
ACTION_WEAPONNEXT, ACTION_WEAPONPREV, ACTION_TOGGLE_LIGHTS, ACTION_TOGGLE_FPS,
|
|
ACTION_TOGGLE_CONSOLE, ACTION_TOGGLE_MOUSELOOK, ACTION_QUICKMOUSELOOK};
|
|
void LoadDefaultControlScheme();
|
|
void ClearControlScheme();
|
|
void Unbind(uint8);
|
|
bool Bind(uint32, uint8);
|
|
|
|
list<uint8> forward;
|
|
list<uint8> backward;
|
|
list<uint8> lookLeft;
|
|
list<uint8> lookRight;
|
|
list<uint8> lookUp;
|
|
list<uint8> lookDown;
|
|
list<uint8> moveLeft;
|
|
list<uint8> moveRight;
|
|
list<uint8> moveUp;
|
|
list<uint8> moveDown;
|
|
list<uint8> firePrimary;
|
|
list<uint8> fireSecondary;
|
|
list<uint8> weaponNext;
|
|
list<uint8> weaponPrev;
|
|
list<uint8> toggleLights;
|
|
list<uint8> toggleFPS;
|
|
list<uint8> toggleConsole;
|
|
list<uint8> toggleMouseLook;
|
|
list<uint8> quickMouseLook;
|
|
list<uint8> rollLeft;
|
|
list<uint8> rollRight;
|
|
};
|
|
}; |