Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
Vendored
+11
-1
@@ -7,6 +7,7 @@
|
||||
#include "cardio_window.h"
|
||||
|
||||
bool CARDIO_RUNNER_FLIP = false;
|
||||
bool CARDIO_RUNNER_TOGGLE = false;
|
||||
static bool CARDIO_RUNNER_INITIALIZED = false;
|
||||
static std::thread* CARDIO_RUNNER_THREAD = nullptr;
|
||||
static HWND CARDIO_RUNNER_HWND = NULL;
|
||||
@@ -71,8 +72,17 @@ void cardio_runner_start(bool scan_hid) {
|
||||
// if card not empty
|
||||
if (*((uint64_t*) &device->usage_value[0]) > 0) {
|
||||
|
||||
bool flip_order = CARDIO_RUNNER_FLIP;
|
||||
if (CARDIO_RUNNER_FLIP) {
|
||||
log_info("cardio", "Flip order of readers since flip option is set");
|
||||
}
|
||||
if (CARDIO_RUNNER_TOGGLE && (GetKeyState(VK_NUMLOCK) & 1) > 0) {
|
||||
log_info("cardio", "Flip order of readers since Num Lock is on");
|
||||
flip_order = !flip_order;
|
||||
}
|
||||
|
||||
// insert card
|
||||
if (CARDIO_RUNNER_FLIP)
|
||||
if (flip_order)
|
||||
eamuse_card_insert((int) (device_no + 1) & 1, &device->usage_value[0]);
|
||||
else
|
||||
eamuse_card_insert((int) device_no & 1, &device->usage_value[0]);
|
||||
|
||||
Reference in New Issue
Block a user