Wren testing
This commit is contained in:
+3
-4
@@ -90,11 +90,10 @@ void KeyDown(kbutton_t *b) {
|
||||
|
||||
void KeyUp(kbutton_t *b) {
|
||||
int k;
|
||||
const char *c;
|
||||
|
||||
c = command::argv(1)->c_str();
|
||||
if (c[0])
|
||||
k = atoi(c);
|
||||
auto c = command::argv(1);
|
||||
if (c.has_value())
|
||||
k = atoi(c->c_str());
|
||||
else {
|
||||
// typed manually at the console, assume for unsticking, so clear all
|
||||
b->down[0] = b->down[1] = 0;
|
||||
|
||||
Reference in New Issue
Block a user