[Wine] Re: Bioshock 2 No Keyboard

cbamber85 wineforum-user at winehq.org
Fri May 11 12:32:40 CDT 2012

I've managed to skip the intro video by commenting out the entry in Bioshock2SP.ini.  I also tried setting the Space=AcceptOrSelect entry in the default DefUser.ini, but it had no effect.

By looking at the wine debug output for keyboard and key, I've also noticed that X definitely receives the keypress and knows what it is:

trace:key:TranslateMessage Translating key VK_SPACE (0020), scancode 0039
trace:key:X11DRV_ToUnicodeEx NumLockMask = 0010
trace:key:X11DRV_ToUnicodeEx AltGrMask = 0010
trace:key:X11DRV_ToUnicodeEx (0020, 0039) : faked state = 0x0010
trace:key:EVENT_event_to_vkey e->keycode = 65
trace:key:X11DRV_ToUnicodeEx Found keycode 65
trace:key:X11DRV_ToUnicodeEx type 2, window 3a0000e, state 0x0010, keycode 65
trace:key:X11DRV_ToUnicodeEx XmbLookupString needs 1 byte(s)
trace:key:X11DRV_ToUnicodeEx nbyte = 1, status 0x4
trace:key:X11DRV_ToUnicodeEx KeyPress : keysym=20 (space), # of chars=1 / " "
trace:key:X11DRV_ToUnicodeEx Translating char 0x20 to unicode
trace:key:X11DRV_ToUnicodeEx returning 1 with L" "
trace:key:TranslateMessage 1 -> PostMessageW(0x1009c,WM_CHAR,0020,00390001)
trace:key:X11DRV_KeyEvent type 3, window 3a0000e, state 0x0010, keycode 65
trace:key:X11DRV_KeyEvent nbyte = 1, status 0
trace:key:X11DRV_KeyEvent KeyRelease : keysym=20 (space), # of chars=1 / " "
trace:key:EVENT_event_to_vkey e->keycode = 65
trace:key:X11DRV_KeyEvent keycode 65 converted to vkey 0x20
trace:key:X11DRV_KeyEvent bScan = 0x39.
trace:key:X11DRV_send_keyboard_input hwnd 0x1009c vkey=0020 scan=0039 flags=0002

I still can't figure out why the keyboard works fine inside the menu system, but is ignored in the loading screen...

More information about the wine-users mailing list