keyboard_interface.c

Functions

buttonInterface_init

4void buttonInterface_init(void)
5{
6    // No initialization needed for Windows console
7}

ButtonInterfaceIsButtonPressed

 9boolean ButtonInterfaceIsButtonPressed(KeyCodes key)
10{
11    return (GetAsyncKeyState(key) & 0x8000) != 0;
12}