- Messages
- 10
- Country

Hi folks,
just searching for a multi button using Custom Event IDs,C++ gauge. So far the code only works for single buttons. Instead of 2 click buttons searching for a single button logic same function.
single buttons works:
same with multi button, no function occurs:
Does anyone have an idea how to implement a multi button in the xml code?
The values are normally set via the xml code, checked via XML_Vars
Not sure if the event handler is the problem itself and shoud be updated for multi funtion.
just searching for a multi button using Custom Event IDs,C++ gauge. So far the code only works for single buttons. Instead of 2 click buttons searching for a single button logic same function.
Code:
static void FSAPI My_Event_Handler(ID32 event_id, UINT32 evdata, PVOID userdata)
{
switch (event_id)
{
case KEY_NULL:
break;
case KEY_A:
Test_Sw = 0;
break;
case KEY_B:
Test_Sw = 1;
break;
default:
break;
}
}
single buttons works:
Code:
<MouseFlags>LeftSingle</MouseFlags>
<EventID>0x0001101B</EventID>
Code:
<MouseFlags>RightSingle</MouseFlags>
<EventID>0x0001101D</EventID>
same with multi button, no function occurs:
Code:
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == if{ (L:master,enum) -- -1 max (>L:master,enum) }
(M:Event) 'RightSingle' scmp 0 == if{ (L:master,enum) ++ 1 min (>L:master,enum) }
(L:master,enum) 0 == if{ (>K:0x0001101B) }
(L:master,enum) 1 == if{ (>K:0x0001101B) }
</CallbackCode>
Does anyone have an idea how to implement a multi button in the xml code?
The values are normally set via the xml code, checked via XML_Vars
Not sure if the event handler is the problem itself and shoud be updated for multi funtion.
Last edited:
