Jump to content



Photo
- - - - -

Need help with KEY_CTRL_UP/DOWN/RIGHT/LEFT

fx-9860GII Add-Ins Add-Ons

  • Please log in to reply
1 reply to this topic

#1 mogus69

mogus69

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    fx-9860GII

Posted 13 July 2022 - 03:06 PM

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;

 

 



#2 HappyCalc

HappyCalc

    Casio Addict

  • Members
  • PipPipPip
  • 57 posts
  • Gender:Male
  • Location:Germany
  • Interests:Programming, On-Calc Programming(C.Basic), Gaming, Origami, Eating Chocolate

  • Calculators:
    fx-9860GII-2
    fx-CG50

Posted 14 July 2022 - 04:07 PM

The problem is that you have a newer calculator (power graphics 2) which has a newer processor and another operating system. On the Casio Education Website where you downloaded the SDK is also a pdf file called "SDK Announcement" which contains the differences between the new and the old calculator. But remember that the new solutions might not work on the emulator.





Also tagged with one or more of these keywords: fx-9860GII, Add-Ins, Add-Ons

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users