Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
TheViking
14
Years of Service
User Offline
Joined: 16th Feb 2012
Location:
Posted: 11th Mar 2012 05:12
Hey everyone, decided to post in here even though I'm using GDK because I will probably get a response quicker.

Anyways, so my issue right now is that when I use something like


I only get either a 0 or a 1 (at the slightest touch)... Now, I know I use to use the joystick commands back when I was using just Dark Basic Pro, and never had this issue, now, it seems that I only get one or the other. I cannot set a deadzone because it won't return a decimal value. Anyone with any ideas? Thanks a lot!
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 11th Mar 2012 11:31
I think what you are looking for is

dbJoystickX();
dbJoystickY();

They return an int ranging from 0 to 1000.

TheViking
14
Years of Service
User Offline
Joined: 16th Feb 2012
Location:
Posted: 11th Mar 2012 18:10
THANKS SO MUCH! I forgot about that one!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Mar 2012 22:37
You can set a deadzone, and that works with the on/off joystick direction commands. The command is called ... SET JOYSTICK DEADZONE.

It should be available within the GDK.

Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 18th Mar 2012 11:56
Quote: "You can set a deadzone, and that works with the on/off joystick direction commands. The command is called ... SET JOYSTICK DEADZONE.

It should be available within the GDK."

Yop, it is since DGDK 7.4 and above

Login to post a reply

Server time is: 2026-07-09 23:11:49
Your offset time is: 2026-07-09 23:11:49