Remaping Joystick for a D-Pad.
3 posts
• Page 1 of 1
Remaping Joystick for a D-Pad.
Hey everyone, new to the Titan One experience!
I am trying to remap a Joystick to a D-Pad, but need a little help. The stick only has 2 items, and the D-Pad 4, so I'm not sure of the exact syntax that I need to use. Here is what I have so far that works for 2 of the 4 directions.
remap HID_STICK_2_Y -> PS4_UP;
remap HID_STICK_2_X -> PS4_LEFT;
Any help would be greatly appreciated!
Thanks!
I am trying to remap a Joystick to a D-Pad, but need a little help. The stick only has 2 items, and the D-Pad 4, so I'm not sure of the exact syntax that I need to use. Here is what I have so far that works for 2 of the 4 directions.
remap HID_STICK_2_Y -> PS4_UP;
remap HID_STICK_2_X -> PS4_LEFT;
Any help would be greatly appreciated!
Thanks!
-
napabar - Sergeant
- Posts: 7
- Joined: Mon May 16, 2022 9:04 pm
Re: Remaping Joystick for a D-Pad.
You cant do directions when remapping. Not to sure how HID stuff works for the T1 but try this;
- Code: Select all
main {
if(get_val(HID_STICK_2_X) <= -80) set_val(PS4_LEFT, 100);
if(get_val(HID_STICK_2_X) >= 80) set_val(PS4_RIGHT, 100);
if(get_val(HID_STICK_2_Y) <= -80) set_val(PS4_UP, 100);
if(get_val(HID_STICK_2_Y) >= 80) set_val(PS4_DOWN, 100);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Remaping Joystick for a D-Pad.
That worked! Thank you!!!
-
napabar - Sergeant
- Posts: 7
- Joined: Mon May 16, 2022 9:04 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: UrASimp and 155 guests