resonance 1.0.1
Loading...
Searching...
No Matches
metcommandmap.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <vector>
5
6#include "met/metscreen.h"
8
29public:
37
48
65 int Translate(const MetControllerReading *pReading, MetScreenCommand *pCommand);
66
67private:
78 int AxisCommand(int nButton, int nPadIndex, float flValue, int nNegative, int nPositive);
79
80 // Which directions each controller holds, by button. +0x00
81 std::vector<std::map<int, int> > mHeld;
82};
int Translate(const MetControllerReading *pReading, MetScreenCommand *pCommand)
Translate one controller reading into one front-end command.
~MetCommandMap()
Release every record and the vector.
Definition metcommandmap.h:46
MetCommandMap()
Build the five empty held-direction records.
One controller reading, as RawControllerMsg carries it.
Definition metcontrollerreading.h:24
One navigation command delivered to a screen.
Definition metscreen.h:46