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.

AppGameKit Classic Chat / [SOLVED] Get physical Joystick button question

Author
Message
JoeOh45240
7
Years of Service
User Offline
Joined: 14th Feb 2017
Location: USA
Posted: 31st Dec 2019 21:10
Does AppGameKit classic (I'm using the trial atm until I get paid.) have a command to get the raw key state, or pressed button state of my PS2-like controller? My controller works fine with programs like ZSNES. Which command should I be using to see if button "A" was pressed and whatnot. Thanks

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

Go to answer

fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
JoeOh45240
7
Years of Service
User Offline
Joined: 14th Feb 2017
Location: USA
Posted: 1st Jan 2020 00:12
I tried using "Print(GetRawLastKey())" to see what the button number is on my joystick when I press it, but it always read as zero. What am I doing wrong?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2020 00:33
getrawlastkey() refers to the keyboard https://www.appgamekit.com/documentation/Reference/Input-Raw/GetRawLastKey.htm

im not sure how you would get the keys on your Ps2 controller
MerryChristmas Everyone
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Jan 2020 00:49 Edited at: 1st Jan 2020 00:50
This post has been marked by the post author as the answer.

Login to post a reply

Server time is: 2024-04-20 07:41:11
Your offset time is: 2024-04-20 07:41:11