Re: Support for additional buttons on X52 HOTAS
Posted: Thu Jan 17, 2019 11:06 pm
Brilliant
Will test it tonight (Aussie time)
Will test it tonight (Aussie time)
High-performance gaming devices.
https://www.consoletuner.com/forum/
https://www.consoletuner.com/forum/viewtopic.php?f=25&t=11404
//2. Cargo hatch
main {
if(event_active(ACCEL_2_Z )) {
combo_run(cargo_hatch);
}
}
combo cargo_hatch {
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 100);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 0);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_B, 0);
}
//2. Cargo hatch
main {
if(event_active(BUTTON_2 )) {
combo_run(cargo_hatch);
}
}
combo cargo_hatch {
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 100);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 0);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_B, 0);
}
#include <xb1.gph>
//2. Cargo hatch
bool accel_2_z_event;
main {
if(get_val(ACCEL_2_Z )) {
if(!accel_2_z_event) {
combo_run(cargo_hatch);
accel_2_z_event = TRUE;
}
} else accel_2_z_event = FALSE;
}
combo cargo_hatch {
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 100);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_UP, 0);
set_val(XB1_B, 100);
wait(150);
set_val(XB1_B, 0);
}
Awesome. Thank for the feedback, I will be including this HID configuration file to the next Gtuner IV release.
Replying your question about the extra buttons. The X52 has an incredible amount of inputs, a total of 45. So some were not included in the HID configuration file. As you can notice all GPC designators are being used (38 total), unfortunately we don't have more room to accommodate the last 7, which are:
Button 6, Button 15, Button 24, Button 25, Button 26, Mouse X, Mouse Y.
I have planned implement a mechanism for the script to direct access the hid reports of connected controller, with this will be possible access all inputs.