Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualeppo

Posted 12 January 2013 - 02:40 PM

0x80 is the high bit of an 8 bit integer (10000000).

If you AND '&' this value with one of the elements in the keyboardState array the resulting value is 0x80 as well in case the key is down.

If this bit is the only bit used, simply checking whether keyboardState is non-zero should work as well, but don't rely on this as other bits may be used for other purposes.

#1eppo

Posted 12 January 2013 - 02:35 PM

0x80 is the high bit of an 8 bit integer (10000000). This bit is set when the key is down.


PARTNERS