What's new

What to alter in padDemul.ini from P1 to P2?

Procyon

New member
[SOLVED] What to alter in padDemul.ini from P1 to P2?

Hello. Like many, I'm having a terrible time setting my controls in Demul because of some analog value that's constantly firing and not allowing me to assign my inputs properly. I don't know whether this is vJoy's fault, or the fact that I'm trying to go through the Wii U GameCube adapter, but I've read that DualShock 4 has a similar problem, so whatever.

I did manage to get player 1 all set up and working properly, but I can't get Demul to read from any other controller because of the analog issue. So I figured: all I really need to do is hack the padDemul.ini file and write in the values that would be correct for J1 instead of J0. Here is my Joy0 set up. Please let me know how to alter the values from J0 to J1. I realize that these are hex values being represented in dec. I see that the upper byte for the buttons is 0x0100 and for the analogs is 0x0200. Is it enough to change those to 0x0300 and 0x0400 respectively, or is there more to it? Thanks very much.

Code:
[JOY0_0]
UP = 16777224
DOWN = 16777225
LEFT = 16777226
RIGHT = 16777227
A = 16777216
B = 16777218
C = 0
D = 0
X = 16777217
Y = 16777219
Z = 0
LTRIG = 16777222
RTRIG = 16777221
START = 16777223
S1UP = 33554689
S1DOWN = 33554433
S1LEFT = 33554688
S1RIGHT = 33554432
S2UP = 0
S2DOWN = 0
S2LEFT = 0
S2RIGHT = 0
UP2 = 0
DOWN2 = 0
LEFT2 = 0
RIGHT2 = 0
 
Last edited:
OP
P

Procyon

New member
Well, I was pretty disappointed with the lack of response from any devs, so I managed to piece the answer together myself through experimentation with some generic joysticks that a friend of mine owned. It turned out that if the upper byte of joystick 0 was 0x0100 and 0x0200, then the upper byte for joystick 1 was 0x0101 and 0x0201 respectively. This then results in the following ini for JOY0_1:

Code:
[JOY0_1]
UP = 16842760
DOWN = 16842761
LEFT = 16842762
RIGHT = 16842763
A = 16842752
B = 16842754
C = 0
D = 0
X = 16842753
Y = 16842755
Z = 0
LTRIG = 16842758
RTRIG = 16842757
START = 16842759
S1UP = 33620225
S1DOWN = 33619969
S1LEFT = 33620224
S1RIGHT = 33619968
S2UP = 0
S2DOWN = 0
S2LEFT = 0
S2RIGHT = 0
UP2 = 0
DOWN2 = 0
LEFT2 = 0
RIGHT2 = 0

I know control issues are a pain in the ass for most emu devs to deal with, but I thought this was a relatively straightforward question that anyone with any knowledge of how the padDemul plugin worked would be able to answer fairly quickly. Hopefully the effort I went to will be able to help anyone else who comes along with the same problem.
 

Top