First off, I've got to thank you for GIMX, it's incredible! I know the xbox 360 support is only experimental, but I've found that almost everything works flawlessly. Even though nothing is better than a mouse and keyboard for playing a shooter, there's still certain games where I prefer a controller, so I've been trying to add analog function to the triggers. I don't have much coding experience, but after a little experimentation (and a whole lot of googling), I think I may be close...
I changed this portion of report.c:
Code: Select all
if (state[0].user.axis[sa_l2])
{
report->ltrigger = 0xFF;
}
if (state[0].user.axis[sa_r2])
{
report->rtrigger = 0xFF;
}
Code: Select all
axis_value = state[0].user.axis[sa_l2];
report->ltrigger = clamp(0, axis_value, 255);
axis_value = state[0].user.axis[sa_r2];
report->rtrigger = clamp(0, axis_value, 255);
If I check "Raw Events" within calibration, jstest reports the trigger axes as 0 - 255, but I'm not quite sure how to set the state of L2 and R2 in GIMX to these raw event values, if that makes any sense. When I use raw events in jstest, gimx reports L2 / R2 as 1 when the triggers are fully pressed.
I'm not asking for a gift wrapped solution or anything, I know your time is limited and I'm already very grateful for this software, but if you have any ideas of where I may be going wrong, and could point me in the right direction, I would really, really appreciate it!
Thanks a lot,
Fish