playMaker

Author Topic: Joystick axis  (Read 4316 times)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Joystick axis
« on: January 25, 2013, 05:15:55 PM »
I know this is a really noob thing to ask, but hey im having my first go at trying to make a game that works with a joypad!

I have mapped my inputs all well, but i have no idea how i would get the axis of the right joystick for in game use,

I have it working with keys, there is a dude and he looks in the direction of the mouse, for that i just used the mouse look action, does anyone know how i could achieve something similar with the joystick?

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Joystick axis
« Reply #1 on: January 25, 2013, 06:32:21 PM »
You use the get axis action.  ;)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Joystick axis
« Reply #2 on: January 26, 2013, 03:58:26 AM »
Already tried, when i enter "Joystick 0 axis 0" i get an error saying that its not set up...

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Joystick axis
« Reply #3 on: January 26, 2013, 03:59:22 AM »
and did you set the joystick up in the input settings?

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Joystick axis
« Reply #4 on: January 26, 2013, 02:40:49 PM »
Okay so no error anymore but i have the get axis action storing Rightjoy H to a float, but its not picking up any movement..

screenshot below.

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Joystick axis
« Reply #5 on: January 26, 2013, 03:21:14 PM »
Use the get axis vector, then split the vector 3 in to XYZ floats.

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Joystick axis
« Reply #6 on: January 26, 2013, 05:19:04 PM »
The vector still isnt getting any response from the joypad, is my input setup correctly? the right stick horizontal i thought was 4th axis, but it wont let me put anything in negative or positive button :S

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Joystick axis
« Reply #7 on: January 28, 2013, 01:36:04 AM »
hi,

 It's likely a set up issue unfortunatly. Have you looked around the web for some joystick bridges to make it easy to set it up?

bye,

 Jean