DrNseven / Ros-D3D

rules of survival
14 stars 16 forks source link

Key bindings not working properly #3

Closed cjdango closed 6 years ago

cjdango commented 6 years ago

Do you have an idea why insert and arrow keys are sometimes not working? If i hold it for a few seconds then it will work

DrNseven commented 6 years ago

Yes, (GetAsyncKeyState('key') & 1 does not work well in this game. I fixed the key bindings today.

static int lasttick_insert = GetTickCount64(); if (GetAsyncKeyState(VK_INSERT) && GetTickCount64() - lasttick_insert > 100) { lasttick_insert = GetTickCount64(); ShowMenu = !ShowMenu; SaveCfg(); }