|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Joystick buttons access
Does anyone know how to access the buttons labeled 1,2,3,... on the joysticks in C/C++?
|
|
#2
|
||||
|
||||
|
Re: Joystick buttons access
Have a look at Joystick::GetRawButton().
|
|
#3
|
||||
|
||||
|
Re: Joystick buttons access
so,
Code:
if (Joystick::GetRawButton(2))//button 2 on the top //complex code if this is pressed Code:
Joystick stick(1); if (stick.GetRawButton(2))//button 2 on the top //complex code if this is pressed |
|
#4
|
|||||
|
|||||
|
Re: Joystick buttons access
The second one, and yes, that is fine.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| joystick and extra buttons | TEAM1949 | Programming | 3 | 18-02-2008 13:22 |
| Programing joystick buttons | Shivang1923 | Programming | 8 | 09-02-2008 16:21 |
| Buttons to Pins on Joystick | yarb65 | Electrical | 1 | 24-08-2007 20:39 |
| Direct Joystick Access | billdar | Programming | 2 | 27-01-2007 22:43 |
| Assigning Joystick buttons.... | archiver | 2001 | 5 | 24-06-2002 00:59 |