Help keyboard reconizing 2 players

Started by
11 comments, last by Kylotan 16 years, 10 months ago
It's exactly the same as posted already.

GetAsyncKeyState('A') & 0x01
Advertisement
Thanks :) wasnt sure if that was legal to do on all letters (eg. another letter could have 0x002) thanks for clearing it up :D
•°*”˜˜”*°•.˜”*°•..•°*”˜.•°*”˜˜”*°•..•°*”˜˜”*°•.˜”*°•.˜”*°•. Mads .•°*”˜.•°*”˜.•°*”˜˜”*°•.˜”*°•..•°*”˜.•°*”˜.•°*”˜ ˜”*°•.˜”*°•.˜”*°•..•°*”˜I am going to live forever... or die trying!
The GetAsyncKeyState call returns the current state of the key in question. Every key has the same potential return values. 0x80 corresponds to the 'currently pressed' bit, and 0x01 corresponds to the 'was pressed since last time' bit.

This topic is closed to new replies.

Advertisement