nakayubi / zengl

Automatically exported from code.google.com/p/zengl
0 stars 0 forks source link

[Win32] Mouse and Joypad problems #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The function to get a Mouse_X and Mouse_Y doesn't works when I am trying to 
draw a solid sprite as cursor. Everything works fine on Linux. I tested this 
isue with FPC 2.5.1 and 2.2.4 . 

Also Joystick doesn't works on Windows version. I need to plug second Joystick 
so engine finds my Joysticks. On Linux I have no problems with this.

I am using zengl-src-r773.

Original issue reported on code.google.com by GintisDX@gmail.com on 24 Aug 2010 at 3:52

GoogleCodeExporter commented 9 years ago
>> The function to get a Mouse_X and Mouse_Y doesn't works when I am trying to 
draw a solid sprite as cursor. Everything works fine on Linux. I tested this 
isue with FPC 2.5.1 and 2.2.4 .

Did you call mouse_ClearState() in your process procedure?

>> Also Joystick doesn't works on Windows version. I need to plug second 
Joystick so engine finds my Joysticks. On Linux I have no problems with this.

I use WinAPI functions joyGetNumDevs() and joyGetDevCaps(), and if they fail - 
there is a problem in driver, or something else and I can't do anything with 
this. But... what was written to the log-file by engine? With one joystick and 
two.

Original comment by dr.andru@gmail.com on 24 Aug 2010 at 4:27

GoogleCodeExporter commented 9 years ago
I think I don't included some important ZenGL unit for capturing mouse 
position, since I tried to draw sprite in "demo08" with Mouse_X and Mouse_Y 
coordinates and it worked like a charm.

Again you was right. I am using shitty generic joystick drivers on Windows XP 
Media Center 2005 SP3. I tested with Wingman Action Pad and it worked just 
fine. Since everything works when I plug two joypads,I will live with that.

Original comment by GintisDX@gmail.com on 25 Aug 2010 at 7:54

Attachments:

GoogleCodeExporter commented 9 years ago
Solved!
Just needed to use "mouse_ClearState" in Process event :/

Original comment by GintisDX@gmail.com on 25 Aug 2010 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by dr.andru@gmail.com on 25 Aug 2010 at 9:12