Jump to content



Photo
- - - - -

Overriding Menu Button Fx-9860G Sdk

SDK menu KEY_CTRL_MENU casio fx-9860G fx-9860GII override key

Best Answer Viliami , 02 December 2015 - 04:37 AM

I found out how to do it.

Just re-read the manual and found out about another function called GetKeyWait().

It lets you override the main menu.

You have to pass in 1 to the 3rd parameter and it will give you control of the Menu key instead of the normal system operation.

 

EDIT: 

GetKeyWait() was was buggy when I used it (returned 0 no matter what) with the SDK so I used the Bkey_GetKeyWait() function instead:

Bkey_GetKeyWait(&keycode, &keycode2, KEYWAIT_HALTON_TIMEROFF, 0, 1, &unused);
Go to the full post


  • Please log in to reply
1 reply to this topic

#1 Viliami

Viliami

    Casio Addict

  • Moderator
  • PipPipPip
  • 98 posts
  • Gender:Male
  • Location:New Zealand
  • Interests:C++ - OpenGL,SDL
    Python - Pygame
    Java - SFML
    C - Casio SDK

  • Calculators:
    FX-9750 GII upgraded to FX-9860 GII

Posted 02 December 2015 - 03:35 AM

I am using the GetKey() function to check if the menu button is pressed,

but it can't be used properly in the program since the calculator just returns back to the menu.

 

I've seen other programs override the menu key, and I read their code but it looks like their using key_down() to check, which isn't compatible with SH4.

 

Anybody know how to override the MENU button?

 



#2 Viliami

Viliami

    Casio Addict

  • Moderator
  • PipPipPip
  • 98 posts
  • Gender:Male
  • Location:New Zealand
  • Interests:C++ - OpenGL,SDL
    Python - Pygame
    Java - SFML
    C - Casio SDK

  • Calculators:
    FX-9750 GII upgraded to FX-9860 GII

Posted 02 December 2015 - 04:37 AM   Best Answer

I found out how to do it.

Just re-read the manual and found out about another function called GetKeyWait().

It lets you override the main menu.

You have to pass in 1 to the 3rd parameter and it will give you control of the Menu key instead of the normal system operation.

 

EDIT: 

GetKeyWait() was was buggy when I used it (returned 0 no matter what) with the SDK so I used the Bkey_GetKeyWait() function instead:

Bkey_GetKeyWait(&keycode, &keycode2, KEYWAIT_HALTON_TIMEROFF, 0, 1, &unused);

Edited by Viliami, 02 December 2015 - 08:30 AM.






Also tagged with one or more of these keywords: SDK, menu, KEY_CTRL_MENU, casio, fx-9860G, fx-9860GII, override, key

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users