Re: GetKeyboardState problems in Age of Empires II

2013-04-18 Thread Stevie Trujillo
I tried to make a test case now. It's tested on wine-1.5.27 since I don't have enough battery to compile new wine. $ winegcc test.c -o test Issue1, the 0x40 bit: $ ./test.exe 00 00 00 00 00 00 00 00 *press LEFT arrow* 81 00 00 00 *release LEFT arrow* 01 00 00 00 *ALTTAB* 41 00 00 00 Issue2, LE

Re: GetKeyboardState problems in Age of Empires II

2013-04-18 Thread Stevie Trujillo
On Thu, 18 Apr 2013 17:39:33 +0900 Dmitry Timoshkov wrote: > [please don't omit wine-devel when replying] > > Stevie Trujillo wrote: > > > > Stevie Trujillo wrote: > > > > Another (minor) problem raised in the bugzilla entry is that, > > > > if a key is pressed when changing window, and relea

Re: GetKeyboardState problems in Age of Empires II

2013-04-18 Thread Dmitry Timoshkov
[please don't omit wine-devel when replying] Stevie Trujillo wrote: > > Stevie Trujillo wrote: > > > Another (minor) problem raised in the bugzilla entry is that, if a > > > key is pressed when changing window, and released before returning, > > > GetKeyboardState() will claim the key is still

Re: GetKeyboardState problems in Age of Empires II

2013-04-17 Thread Dmitry Timoshkov
Stevie Trujillo wrote: > "Age of Empires II scrolling gets stuck after Alt-Tab away > and back" ( http://bugs.winehq.org/show_bug.cgi?id=30814 ) has been > debugged now. > > The problem is that GetKeyboardState starts returning 0x40 after > changing window. Documentation seems to only define LSB

GetKeyboardState problems in Age of Empires II

2013-04-17 Thread Stevie Trujillo
"Age of Empires II scrolling gets stuck after Alt-Tab away and back" ( http://bugs.winehq.org/show_bug.cgi?id=30814 ) has been debugged now. The problem is that GetKeyboardState starts returning 0x40 after changing window. Documentation seems to only define LSB and MSB ( http://msdn.microsoft.com/