http://bugs.winehq.org/show_bug.cgi?id=2981
Summary: direct input device only works when created in the
thread which created the window
Product: Wine
Version: unspecified
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-directx
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: allefant(a)gmail.com
All windows programs created with the Allegro games library
(http://alleg.sf.net) don't have keyboard input under Wine. Here is an .exe (one
of the example programs that come with it) to show the problem:
http://allefant.sf.net/uploads/exkeys.exe. You can also get the complete library
(http://prdownloads.sourceforge.net/alleg/all403.zip?download), it includes it
as example. (Or you should be able to find some windows games made with it, like
the ones here: http://www.freelunchdesign.com/games.shtml)
I also tracked down the cause of this in the Allegro source code: If the direct
input device for the keyboard is created in the primary thread, Wine doesn't
deliver keyboard events. If it is created in the same thread which also created
the window, everything works.
The critical place in the source code is this line:
http://srnet.cz/~stepan/allegro/srcs/allegro-4.2.0-beta3/src/win/wkeybd.c.h…
If this line (and only this line) is moved into the same thread which created
the window, keyboard starts working.
I assume, most windows programs create the window in the primary thread, so this
is why Wine could have this bug for so long. But since it works in real windows
(in fact, all version from the most ancient to most recent - everything that
supports at least dx 3.0), and also MSDN doesn't require it to be the primary
thread, it should be fixed.
Tell me if you need any more info. I can also try to provide a short testcase
independent of Allegro, which shows the problem: Simply create a window not in
the primary thread, then intialize the direct input keyboard device from the
primary thread: It will work in real windows, but not in wine.
Oh, and somewhat off-topic for this, but it's the reason I report the bug - do
you think we should add a work-around for this in Allegro, or will future Wine
versions have it fixed?
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2635
flavio.provenda(a)terra.com.br changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From flavio.provenda(a)terra.com.br 2005-23-05 06:31 -------
yes...
it fixed. now it looks http://www.winehq.org/site/docs/wine-devel/index
thank you.
I think this bug can be closed now.
Flávio
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2980
------- Additional Comments From hans(a)it.vu.nl 2005-23-05 03:21 -------
The cause of these errors has been fixed in Wine CVS. Can you
try that? Otherwise you could wait for the May release of Wine.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2980
wm161(a)wm161.net changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gamemaker.nl/beta.htm|http://gamemaker.nl/
|l |
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2979
wm161(a)wm161.net changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gamemaker.nl |http://gamemaker.nl/beta.htm
| |l
------- Additional Comments From wm161(a)wm161.net 2005-22-05 17:59 -------
I'd upload the installer, but my upload speed is about 56k. On a good day. The
installer is about 3MB.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2980
wm161(a)wm161.net changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gamemaker.nl |http://gamemaker.nl/beta.htm
| |l
------- Additional Comments From wm161(a)wm161.net 2005-22-05 17:58 -------
I'd upload the exe, but I have an upload speed of about 56k. On a good day.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2980
Summary: GP-Install has lots of errors
Product: Wine
Version: 20050310
Platform: PC
URL: http://gamemaker.nl
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-binary
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: wm161(a)wm161.net
I'm installing the program Game Maker, which is a program that...does the obvious.
Its installer keeps getting lots of errors. When I start the installer, I get a
box that says "External exception 80000101". You click Ok, and it pops up again.
Repeat 7 times total. The main installer dialog pops up now, and you click next.
The same box pops up 46 more times, then you get a small box, blank, with the
installer's logo in the titlebar. After about a second, the whole installer
closes, and wine exits 'sucessfully', without actually installing anything.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2979
Summary: Installer not working
Product: Wine
Version: 20050310
Platform: PC
URL: http://gamemaker.nl
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-binary
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: wm161(a)wm161.net
I'm attempting to install game maker, which is a program that....does the
obvious. There is no other way to install it, other than the exes.
I installed the attached 6.1 beta installer, and it freezes at the end of the
attached log.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.