diff options
author | quou <quou@disroot.org> | 2024-12-30 17:01:55 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-30 17:01:55 +1100 |
commit | 0f0167c0211acd69c104ab6c7c1caa8fa85d7e4f (patch) | |
tree | 9dc472a310d7f91a9456b87dee9e0b3e731d376c /app.cpp | |
parent | e8baea58dd5c92b62c4eef1b5c1ca9648f44e7d7 (diff) |
start UI framework
Diffstat (limited to 'app.cpp')
-rw-r--r-- | app.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -551,35 +551,35 @@ void App::end() { internal->end(this); } -Key_State App::ks(Key k) { +Key_State App::ks(Key k)const { return (Key_State)key_states[k]; } -Key_State App::ms(Mbtn k) { +Key_State App::ms(Mbtn k) const { return (Key_State)mbtn_states[k]; } -bool App::kp(Key k) { +bool App::kp(Key k)const { return key_states[k] & key_state_pressed; } -bool App::kjp(Key k) { +bool App::kjp(Key k) const { return key_states[k] & key_state_just_pressed; } -bool App::kjr(Key k) { +bool App::kjr(Key k) const { return key_states[k] & key_state_just_released; } -bool App::mp(Mbtn b) { +bool App::mp(Mbtn b) const { return mbtn_states[b] & key_state_pressed; } -bool App::mjp(Mbtn b) { +bool App::mjp(Mbtn b) const { return mbtn_states[b] & key_state_just_pressed; } -bool App::mjr(Mbtn b) { +bool App::mjr(Mbtn b) const { return mbtn_states[b] & key_state_just_released; } @@ -592,4 +592,4 @@ void App::get_vk_exts(const char** exts, int& count) { #else #error #endif -}
\ No newline at end of file +} |