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.

DarkBASIC Discussion / Joystick and Mouselook

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 13th Apr 2006 13:03
Yes hello is it possible to get the joystick controls and the mouse to work together but separately, for instance I have a player charector so I just use the mouse and keyboard but they get into a vehicle so I use the mouse to steer and the keyboard to turn left and right and I can also use a driving wheel with pedals or if I want flight a joystick or joystick H.O.T.A.S system.

Is it possilbe?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 13th Apr 2006 13:12
And ere can anyone tell me what blocking commands are please?
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 13th Apr 2006 16:27
see manual or press F1, look at input section.



Dr Frankenstiens mum told him to make some new friends, not knowing where this was going to lead.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 14th Apr 2006 06:26
OK thanks Me! ,still though I need to know about the joystick left and right or y() or x() and the mouse as I am trying make sure that in my game people can use both for looking around and turning
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 14th Apr 2006 11:33 Edited at: 14th Apr 2006 11:41
umm! just use both commands, I don`t realy understand the problem I think, heres an example where the mouse and the joystick are used at the same time, the joystick turns and moves the sphere, the cube is swiveled by the mouse, both work at the same time, notice that you don`t have to use commands like "if mousex()>0 then blahblah" because the commands can have the returned values used directly to position the objects.



OH! btw, this was written in Pro, I don`t know if there are any Pro specific commands in my example, there shouldn`t be as far as I can see, but its a while since I used Classic, so it might need tweeking.



Dr Frankenstiens mum told him to make some new friends, not knowing where this was going to lead.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 14th Apr 2006 17:16
OK cool Me! it hust I have loads of programs in DBC using either the joysick or the mouse but not both I don't know if it is because of DBC or if it is just me still thanks anyway.

Login to post a reply

Server time is: 2025-05-23 21:41:22
Your offset time is: 2025-05-23 21:41:22