Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, lijoyi2011), 1,047 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
win API prolem - joystickfunction #311906
02/22/10 03:27
02/22/10 03:27
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Hi,
Perhaps there is somebody who konws the winApi.
I need your help.
Situation:
I have made an easy game that uses up to 10 gamepads.
I am using on_scanmessage to catch the massages.
I call "joySetCapture(...)" to register a joystick/gamepad.
(I don't want to use DirectInput, because I don't know how to use this in Lite-C)

This runs without any problems, but:
I can only call "joySetCapture(...)" within the "main" - void.
In main function it doesn't matter how many frames passed.

Sometimes I don't understand the API thing.

edit:

Even if it is not possible to detect joysticks at runtime, I want to outsource the function too cleanup my main function.

MfG,
Patrick

Last edited by TheThinker; 02/22/10 03:29.
Re: win API prolem - joystickfunction [Re: TheThinker] #311990
02/22/10 17:45
02/22/10 17:45
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
EDIT:

Ok, solved the problem.
I forgot to write WINAPI before the function prototypes.

It is strange that this runs for the first to joysticks..



Last edited by TheThinker; 02/22/10 22:19.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1