Greetings everyone,
I have a problem with a C-Code for an Add-In for my Casio fx-9860. It is a snake Add-In. However, everything works just fine and how it should except the input for the arrow keys. You see, on the SDK-emulator the following works as it should. However, on the calculator itself the code seems to fail. It does not notice the input. Even when using the numerical key code (library: keybios.h) the code fails. The calculator freezes and it has to be reset with the small button on the back.
Does anyone know how to solve this problem, so also the calculator is able to notice the change?
else if (IsKeyDown(KEY_CTRL_UP)) direction = 1; else if (IsKeyDown(KEY_CTRL_RIGHT)) direction = 2; else if (IsKeyDown(KEY_CTRL_DOWN)) direction = 3; else if (IsKeyDown(KEY_CTRL_LEFT)) direction = 4;