kopia lustrzana https://gitlab.com/eliggett/wfview
Use correct data for F1 key
rodzic
5237c930e5
commit
d0cd7e2eb3
|
@ -370,7 +370,7 @@ void usbController::runTimer()
|
||||||
ledControl(false, 0);
|
ledControl(false, 0);
|
||||||
emit button(butptt->offCommand);
|
emit button(butptt->offCommand);
|
||||||
}
|
}
|
||||||
else if (butf1 != Q_NULLPTR && ((unsigned char)data[5] == 0x7d) && ((unsigned char)lastData[5] != 0x7d))
|
else if (butf1 != Q_NULLPTR && ((unsigned char)data[5] == 0x05) && ((unsigned char)lastData[5] != 0x05))
|
||||||
{
|
{
|
||||||
// F-1 key up only (no other keys down)
|
// F-1 key up only (no other keys down)
|
||||||
//emit button(true, 5);
|
//emit button(true, 5);
|
||||||
|
@ -379,7 +379,7 @@ void usbController::runTimer()
|
||||||
ledControl(true, 1);
|
ledControl(true, 1);
|
||||||
emit button(butf1->onCommand);
|
emit button(butf1->onCommand);
|
||||||
}
|
}
|
||||||
else if (butf1 != Q_NULLPTR && ((unsigned char)data[5] != 0x7d) && ((unsigned char)lastData[5] == 0x7d))
|
else if (butf1 != Q_NULLPTR && ((unsigned char)data[5] != 0x05) && ((unsigned char)lastData[5] == 0x05))
|
||||||
{
|
{
|
||||||
// F-1 key down only (no other keys down)
|
// F-1 key down only (no other keys down)
|
||||||
//emit button(false, 5);
|
//emit button(false, 5);
|
||||||
|
|
Ładowanie…
Reference in New Issue