|
Post by angeleyes on Nov 24, 2016 19:17:40 GMT
Hi there. I am busy scripting a joystick for a program I am working on. I have been through the script reference and need some extra information if anyone can help.
Firstly when using iJoyXAverage, it never reaches the actual X value even if holding the joystick still. Is this a bug. Did I misunderstand the calculation?
Secondly how does one use JoyZ, JoyU and JoyV? I am guessing that JoyZ would be if the joystick has a depress feature on the handle giving the third axis of movement. But where does U and V come in?.
Thanks
|
|
|
Post by indiedev on Nov 30, 2016 10:00:48 GMT
it'd be easier for you to understand what's what, by using the ValuePrint object linked to those parts for testing.
|
|
|
Post by angeleyes on Dec 8, 2016 20:34:58 GMT
Thanks for the feedback. Not sure how I would use ValuePrint to monitor the inputs from a joystick as there is no object to link the ValuePrint to. That said I never use Value Print, (although will from now on) and perhaps am missing something.
However I scripted this through a TextPrint to check what the values were doing. However the ones I mentioned did not show up at all, regardless of what I did on the JoyStick. I am presuming that my joystick does not have whatever functionality. That is why I was looking to see what the other options were, perhaps from people that have used them.
Anyone used them successfully before?
|
|
|
Post by TinSoldier on Dec 9, 2016 5:26:27 GMT
yes i have..
1st you need to have your joystick recognized by windows and you should be able to adjust it's settings through the manufacturer software and or through windows joystick utility, i forget where in windows 7 that is excatly in the control panel cause i don't have my my wireless logitech gamepad hooked up right now.
once thats done, inside 3drad you can use a eventoninput object and the configure controls object and assign any input as a joystick or mouse instead of a key input.
once that happens you have basic joystick options in your project.
use the valueprint or print object to print on screen the value received between 0 & 1 or -1 & 1 depending which input control your printing.
if this is a programming exercise you're up to, or do you have some special need to manually use the script joystick commands ? .
|
|