int inc = -score; if (Z is pressed) inc = 100; score += inc;
GetAsyncKeyState
bool isZKeyDown() { // test if the Most Significative Bit (MSB, i.e. bit 15) is one. return ((GetAsyncKeyState('Z') >> 15) == 1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)