metaforce/Runtime/GuiSys/CGuiAutoRepeatData.hpp

33 lines
864 B
C++
Raw Normal View History

2016-03-10 03:47:37 +00:00
#ifndef __URDE_CGUIAUTOREPEATDATA_HPP__
#define __URDE_CGUIAUTOREPEATDATA_HPP__
2016-03-11 22:50:15 +00:00
#include "CGuiPhysicalMsg.hpp"
2016-03-10 03:47:37 +00:00
2016-03-11 22:50:15 +00:00
namespace urde
2016-03-11 00:23:16 +00:00
{
class CGuiAutoRepeatData
{
2016-03-14 23:32:44 +00:00
EPhysicalControllerID x0_instEvent;
EPhysicalControllerID x4_contEvent;
float x8_nextDue[4] = {0.f, 0.f, 0.f, 0.f};
float x18_remainder[4] = {0.2f, 0.2f, 0.2f, 0.2f};
bool x28_pressed[4] = {};
bool x2c_defer[4] = {};
2016-03-11 00:23:16 +00:00
public:
2016-03-14 23:32:44 +00:00
CGuiAutoRepeatData(EPhysicalControllerID inst, EPhysicalControllerID cont)
: x0_instEvent(inst), x4_contEvent(cont) {}
void SetActive(int cIdx, float eTime)
{
x8_nextDue[cIdx] = eTime + 0.6f;
x28_pressed[cIdx] = true;
x2c_defer[cIdx] = true;
x18_remainder[cIdx] = 0.2f;
}
void AddAutoEvent(int cIdx, CGuiPhysicalMsg::PhysicalMap& events, float eTime);
2016-03-11 00:23:16 +00:00
};
2016-03-10 03:47:37 +00:00
}
#endif // __URDE_CGUIAUTOREPEATDATA_HPP__