Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DONE]How to get button status in code?
#1
Question 
Hi there, I'm sorry for asking such a simple question, because I'm a green hand to PPSSPP codes, and just begin from yestoday. =(
I'm working on the "0xD" cheat code now, you know there are some code depend on button state, I tried to find this by myself but failed...
Here are an example:
int buttonStatus; // ut32 buttonStatus? be used as a buffer to save button status
when TRIANGLE and CIRCLE is push, the value should be like this
buttonStatus = 0x00001000 + 0x00002000 // should be 0x00003000
I just want to know how to get the value of "0x00001000" and "0x00002000" or "0x00003000" in code?Angel
thx for you read, and do me a favor plz Heart
Reply
#2
Presently, joker commands on cheat codes don't work with PPSSPP (usually starts with "0xD"). Big Grin
WATCH MY MHFU GAMEPLAY VIDS AT: https://www.youtube.com/user/TheBarbanium
Have I been helpful to you in any way, nya?
You can click that "+" button ▼ to raise my reputation, meow!
Reply
#3
To: barbanium
yes, you are right, that's what i'm trying to add to the code =).
To: [Unknow]
Thx very much!!

thx to [Unknow], I think it's finished now =)
uploaded, I'd like to hear if there are any problems.Wink
Reply
#4
Include Core/HLE/sceCtrl.h and use __CtrlPeekButtons().

-[Unknown]
Reply


Forum Jump: