How to ignore specifics Cursor Y and Cursor X values?

Hmm it’s strange, because it’s really not going over the min and maj values that the monitor record. For example the PS1 controller only does that 1, and only 0 and 2 when it’s me who pressing.

Can you send me a PM to check the issue on discord when you have free time ?
Because not beeing able to use the sticks at all is a bit problematic for my use case xD.

Thanks for your all fast answers and help by the way :slight_smile:

Not sure what you mean, by definition a value cannot go below min or above max. That’s what min and max are.

I mean the min and max recorded are still 1 when i not touching the PS1 controller.

So normally it means the HID Remapper always get value of 1 for Cursor Y/X when not touching the controller who is normal in that case.

However it means if it really ignore the 1 value it’s something else in the code who making it moving left/right up/down in loop once the expression is enabled.

Do you have other devices connected while testing this?

If you have multiple devices connected you need to change the expression to only read the inputs from a specific port. For example:

1 port
0x00010030 input_state 0 eq 1 store
0x00010030 input_state 2 eq 2 store
0x00010031 input_state 0 eq 3 store
0x00010031 input_state 2 eq 4 store

(Please note this is separate from the port setting on the input side of a mapping - that only makes it ignore the mapping when nothing is plugged into that port. It doesn’t affect the processing of the expression itself.)

Indeed i have a keypad to change layers on the second port on purpose for later.

Thanks for your code, now the Playstation 1 controller works fine !

Left/Right and Up/Down on the D-Pad works fine.

How i do the same fix for the PS4 controller ?

Same way, prefix the expression with “1 port” (or whichever port the controller is plugged into).

All works now !

Thanks for your help :slight_smile:

1 Like