28 #ifndef YCL_INC_Inupt_h_
29 #define YCL_INC_Inupt_h_ 1
32 #include YFM_YCLib_Keys
33 #include YFM_YCLib_Video // for SPos;
45 # define YCL_KEY(X) (#X [0])
46 # define YCL_KEY_Start 'P'
48 # define YCL_KEY(X) KeyCodes::X
49 # define YCL_KEY_Start KeyCodes::Start
74 #if YF_Multithread // || ...
75 # define YCL_KEYSTATE_DIRECT 0
77 # define YCL_KEYSTATE_DIRECT 1
123 #if YCL_KEYSTATE_DIRECT
153 YF_API std::pair<std::int16_t, std::int16_t>
180 WaitForFrontKeypad();
198 YF_API std::pair<float, float>
207 SaveInput(const ::AInputEvent&);
YF_API const platform::KeyInput & FetchKeyState()
取按键状态。
YF_API const platform::KeyInput & FetchOldKeyState()
取上一次更新的按键状态。
YF_API void WaitForInput()
等待任意按键。
YF_API platform::KeyInput FetchKeyUpState()
取键释放状态。
bool reset(std::unique_ptr< _type > &p)
YF_API void ClearKeyStates()
清除按键缓冲。
YF_API platform::KeyInput FetchKeyDownState()
取键按下状态。
YF_API void UpdateKeyStates()
更新按键状态。
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。