Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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