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.

Newcomers AppGameKit Corner / [SOLVED] Trigger Buttons?

Author
Message
MadTinkerer
8
Years of Service
User Offline
Joined: 21st Nov 2010
Location:
Posted: 14th Jul 2018 18:37 Edited at: 14th Jul 2018 23:37
I've been all over the tutorials and documentation for AppGameKit and can't find the command for detecting trigger buttons. Shoulder buttons on the XB360 gamepad are 5 and 6 for the left and right shoulder buttons so that's fine. Nothing for trigger buttons. I tested all possible inputs for GetRawJoystickButtonState() and got responses for everything but the trigger buttons. Aren't there commands for detecting whether trigger buttons have been pressed? But also trigger buttons are analog, so shouldn't there should be commands for detecting how much pressure the player is putting on the trigger?

The only relevant thread I could find was someone complaining that trigger buttons hadn't been implemented in DBPro...

The author of this post has marked a post as an answer.

Go to answer

smallg
Valued Member
13
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 15th Jul 2018 00:36
This post has been marked by the post author as the answer.
GetRawJoystickRZ is used for the right trigger, and GetRawJoystickZ for the left.
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
MadTinkerer
8
Years of Service
User Offline
Joined: 21st Nov 2010
Location:
Posted: 17th Jul 2018 20:22
Thanks!
MadTinkerer
8
Years of Service
User Offline
Joined: 21st Nov 2010
Location:
Posted: 19th Jul 2018 20:27
Oh, does anyone know how to detect when a joystick is pressed down? Is that one of the GetRawJoystick numbers?

Login to post a reply

Server time is: 2019-05-26 00:27:36
Your offset time is: 2019-05-26 00:27:36