Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[linux] it makes no sense to make WinAPI calls from virtual functions
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed May 18, 2022
1 parent 784c70a commit 2ae3966
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libs/common/include/controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,27 +194,27 @@ class CONTROLS

virtual short GetAsyncKeyState(int vk)
{
return GetAsyncKeyState(vk);
return 0;
}

virtual short GetKeyState(int vk)
{
return GetKeyState(vk);
return 0;
}

virtual short GetDebugAsyncKeyState(int vk)
{
return GetAsyncKeyState(vk);
return 0;
}

virtual short GetDebugKeyState(int vk)
{
return GetKeyState(vk);
return 0;
}

virtual bool IsKeyPressed(int vk)
{
return GetKeyState(vk) < 0;
return 0;
}

// Get the keystroke buffer per frame (taking into account the language)
Expand Down

0 comments on commit 2ae3966

Please sign in to comment.