How to read sequences & development workflow (newb question)
2 posts
• Page 1 of 1
How to read sequences & development workflow (newb question)
I'm learning by reading other scripts.
I can understand most of the simple cases of If (some button) do something
But what I would like to do is detect sequences of buttons. So for example, if you press x followed by o, do something
Can someone please point me in the right direction?
Also, my development workflow is rather clumsy. I see some folks have some kind of IDE that detects what they are doing. Is that what kmg capture is for?
For example, this topic, partway down:
viewtopic.php?f=26&t=8591&p=62288&hilit=Touchpad+click#p62288
When I'm connected to the PS5, and I'm moving around, I thought I could see the movements using kmg, but I don't.
I think I would be more productive if I understood how the development workflow is supposed to work here.
I can understand most of the simple cases of If (some button) do something
But what I would like to do is detect sequences of buttons. So for example, if you press x followed by o, do something
Can someone please point me in the right direction?
Also, my development workflow is rather clumsy. I see some folks have some kind of IDE that detects what they are doing. Is that what kmg capture is for?
For example, this topic, partway down:
viewtopic.php?f=26&t=8591&p=62288&hilit=Touchpad+click#p62288
When I'm connected to the PS5, and I'm moving around, I thought I could see the movements using kmg, but I don't.
I think I would be more productive if I understood how the development workflow is supposed to work here.
-
ExtraLife - Corporal
- Posts: 5
- Joined: Sun Jun 13, 2021 3:38 pm
Re: How to read sequences & development workflow (newb quest
ExtraLife wrote:But what I would like to do is detect sequences of buttons. So for example, if you press x followed by o, do something
There are several ways to do it depending on what you're trying to achieve.
- Code: Select all
#include <ps4.gph>
main {
if(is_active(PS4_CROSS) && event_active(PS4_CIRCLE)) {
// do stuff
}
}
https://www.consoletuner.com/wiki/index ... examples_1
https://www.consoletuner.com/wiki/index ... _reference
ExtraLife wrote:Also, my development workflow is rather clumsy. I see some folks have some kind of IDE that detects what they are doing. Is that what kmg capture is for?
No, KMG captures the mouse/keyboard/gamepad data from the PC and forwards it to the console.
The image from the link is the device monitor. Gtuner>Device Monitor. As long as PROG is connected to the PC you can view input/output in the device monitor.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 127 guests