Cast to char to satisfy compiler

This commit is contained in:
Jonathan Bennett 2025-06-07 00:02:49 -05:00
parent 67d3cafc6f
commit f8ea9c0e40

View File

@ -273,7 +273,7 @@ int32_t ButtonThread::runOnce()
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event) // Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
if (inputBroker) { if (inputBroker) {
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_PRESSED, 0, 0, 0}; InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_PRESSED, 0, 0, 0};
inputBroker->injectInputEvent(&evt); inputBroker->injectInputEvent(&evt);
} }
@ -291,7 +291,7 @@ int32_t ButtonThread::runOnce()
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event) // Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
if (inputBroker) { if (inputBroker) {
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_DOUBLE_PRESSED, 0, 0, 0}; InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_DOUBLE_PRESSED, 0, 0, 0};
inputBroker->injectInputEvent(&evt); inputBroker->injectInputEvent(&evt);
} }
@ -307,7 +307,7 @@ int32_t ButtonThread::runOnce()
// Forward long press to InputBroker (but NOT as DOWN/SELECT, just forward a "button long press" event) // Forward long press to InputBroker (but NOT as DOWN/SELECT, just forward a "button long press" event)
if (inputBroker) { if (inputBroker) {
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_LONG_PRESSED, 0, 0, 0}; InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_LONG_PRESSED, 0, 0, 0};
inputBroker->injectInputEvent(&evt); inputBroker->injectInputEvent(&evt);
} }