-
Notifications
You must be signed in to change notification settings - Fork 1
TUTORIAL Keyboard Input
invoker__qq edited this page Nov 15, 2020
·
2 revisions
You can use keyboard by following.
You can find the keyboard from here.
kDown kHeld kUp is a u64 type data.
virtual bool OnUserUpdate(float fElapsedTime) override
{
if(KeyDown(KEY_UP))
DrawString(0,ScreenHeight()/2,"UP KEY is down");
//or do something
if(KeyUp(KEY_UP))
DrawString(0,ScreenHeight()/3,"UP KEY is kUp");
if(KeyHeld(KEY_UP))
DrawString(0,ScreenHeight()/4,"UP KEY is held");
return true;
}