Hi All,
Maybe someone will need script for TARGET script in order to use two TPR pedals as one axis (Left for up and right for down):
Thx to the Sidelia from this forum for idea (and script for TFRP).
int EventHandle(int type, alias o, int x) {
int a, b, c;
if (&o == &TFRPHARudder & (x == TFRPHA_LEFT | x == TFRPHA_RIGHT)) { // handle the combined toe brakes on the pedals
GetAxisData(&TFRPHARudder, TFRPHA_LEFT);
a = 0 - (AxisVal(TFRPHARudder[TFRPHA_LEFT], &axdata) / 2);
GetAxisData(&TFRPHARudder, TFRPHA_RIGHT);
b = AxisVal(TFRPHARudder[TFRPHA_RIGHT], &axdata) / 2;
c = a + b;
DXAxis(DX_ZROT_AXIS, c);
GetAxisData(&o, x);
axdata.val = AxisVal(o[x], &axdata);
GameOutput(&o, x, axdata.val);
} else
DefaultMapping(&o, x);
}
Maybe someone will need script for TARGET script in order to use two TPR pedals as one axis (Left for up and right for down):
Thx to the Sidelia from this forum for idea (and script for TFRP).
int EventHandle(int type, alias o, int x) {
int a, b, c;
if (&o == &TFRPHARudder & (x == TFRPHA_LEFT | x == TFRPHA_RIGHT)) { // handle the combined toe brakes on the pedals
GetAxisData(&TFRPHARudder, TFRPHA_LEFT);
a = 0 - (AxisVal(TFRPHARudder[TFRPHA_LEFT], &axdata) / 2);
GetAxisData(&TFRPHARudder, TFRPHA_RIGHT);
b = AxisVal(TFRPHARudder[TFRPHA_RIGHT], &axdata) / 2;
c = a + b;
DXAxis(DX_ZROT_AXIS, c);
GetAxisData(&o, x);
axdata.val = AxisVal(o[x], &axdata);
GameOutput(&o, x, axdata.val);
} else
DefaultMapping(&o, x);
}