metaforce/Runtime/Input/ControlMapper.hpp

118 lines
2.4 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CCONTROLMAPPER_HPP__
#define __URDE_CCONTROLMAPPER_HPP__
2015-08-28 00:11:31 +00:00
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-28 00:11:31 +00:00
{
class CFinalInput;
class ControlMapper
{
public:
2015-11-21 01:16:07 +00:00
enum class ECommands
2015-08-28 00:11:31 +00:00
{
2015-11-21 01:16:07 +00:00
Forward,
Backward,
TurnLeft,
TurnRight,
StrafeLeft,
StrafeRight,
LookLeft,
LookRight,
LookUp,
LookDown,
JumpOrBoost,
FireOrBomb,
MissileOrPowerBomb,
Morph,
AimUp,
AimDown,
CycleBeamUp,
CycleBeamDown,
CycleItem,
PowerBeam,
IceBeam,
WaveBeam,
PlasmaBeam,
ToggleHolster,
OrbitClose,
OrbitFar,
OrbitObject,
OrbitSelect,
OrbitConfirm,
OrbitLeft,
OrbitRight,
OrbitUp,
OrbitDown,
LookHold1,
LookHold2,
LookZoomIn,
LookZoomOut,
AimHold,
MapCircleUp,
MapCircleDown,
MapCircleLeft,
MapCircleRight,
MapMoveForward,
MapMoveBack,
MapMoveLeft,
MapMoveRight,
MapZoomIn,
MapZoomOut,
ChaseCamera,
XrayVisor,
ThermoVisor,
InviroVisor,
NoVisor,
VisorMenu,
VisorUp,
VisorDown,
UseSheild=0x3B,
ScanItem=0x3C,
2017-05-02 04:00:38 +00:00
PreviousPauseScreen=0x41,
NextPauseScreen=0x42,
2015-11-21 01:16:07 +00:00
UNKNOWN,
None,
MAX
2015-08-28 00:11:31 +00:00
};
2015-11-21 01:16:07 +00:00
enum class EFunctionList
2015-08-28 00:11:31 +00:00
{
2015-11-21 01:16:07 +00:00
None,
LeftStickUp,
LeftStickDown,
LeftStickLeft,
LeftStickRight,
RightStickUp,
RightStickDown,
RightStickLeft,
RightStickRight,
LeftTrigger,
RightTrigger,
DPadUp,
DPadDown,
DPadLeft,
DPadRight,
AButton,
BButton,
XButton,
YButton,
ZButton,
LeftTriggerPress,
RightTriggerPress,
Start,
MAX // default case
2015-08-28 00:11:31 +00:00
};
static void SetCommandFiltered(ECommands cmd, bool filtered);
static void ResetCommandFilters();
static bool GetPressInput(ECommands cmd, const CFinalInput& input);
static bool GetDigitalInput(ECommands cmd, const CFinalInput& input);
static float GetAnalogInput(ECommands cmd, const CFinalInput& input);
static const char* GetDescriptionForCommand(ECommands cmd);
static const char* GetDescriptionForFunction(EFunctionList func);
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CCONTROLMAPPER_HPP__