Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (PeWi, AndrewAMD, TipmyPip, Geir), 15,254 guests, and 21 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Geir, ondrej, mredit, vestriaa, Lukudo
19206 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 | 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