Author Topic: Joysticks  (Read 381 times)

johnno56

  • Guest
Joysticks
« on: November 11, 2015 »
Just a quick question.

Does N6 support joysticks? If so, how would it be coded?

J

cvirus

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Joysticks
« Reply #1 on: November 11, 2015 »
From the docs.

Code: [Select]

Sub routines
function joyx()
function joyy()
function joybutton(id)
function joyx()
Return -1 if joystick is pressed left, 1 if it's pressed right or else 0.
function joyy()
Return -1 if joystick is pressed up, 1 if it's pressed down or else 0.
function joybutton(id)
Return true if joystick button id is pressed. If id is 0 or greater than 32 any pressed button will cause true
to be returned.

johnno56

  • Guest
Re: Joysticks
« Reply #2 on: November 12, 2015 »
Thanks cvirus,

The Docs should have been my first option. My bad.

J