Remaping Joystick for a D-Pad.

Titan One general support. Questions, firmware update, feature request.

Remaping Joystick for a D-Pad.

Postby napabar » Mon May 16, 2022 9:08 pm

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!
User avatar
napabar
Sergeant
Sergeant
 
Posts: 7
Joined: Mon May 16, 2022 9:04 pm

Re: Remaping Joystick for a D-Pad.

Postby Mad » Mon May 16, 2022 9:31 pm

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 (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Remaping Joystick for a D-Pad.

Postby napabar » Mon May 16, 2022 11:50 pm

That worked! Thank you!!!
User avatar
napabar
Sergeant
Sergeant
 
Posts: 7
Joined: Mon May 16, 2022 9:04 pm


Return to Titan One Device

Who is online

Users browsing this forum: No registered users and 106 guests