Jump to content



Photo
- - - - -

Keycode For The Menu Button


  • Please log in to reply
3 replies to this topic

#1 Distortion

Distortion

    Newbie

  • Members
  • Pip
  • 23 posts

  • Calculators:
    fx-9860G

Posted 31 January 2010 - 12:54 PM

I'd like to know the keycode for the MENU button on my fx-9860G.
I made a program that displays the codes for every key a while ago, but when I press the menu key it'll jump to the main menu rather then displaying the actual code. And since I can't see any relationship between the keys (because some are like 30004 and others are like 47) I'm having some trouble guessing the code, so I was hoping you would know it.

Thanks in advance,

|Distortion|

EDIT: I'm not talking about the basic keycodes.

Edited by Distortion, 31 January 2010 - 12:57 PM.


#2 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 31 January 2010 - 10:51 PM

If you are talking about when using the SDK, the GetKey() function does not return a keycode. It will always take you to the MAIN MENU if I remember correctly.

#3 Distortion

Distortion

    Newbie

  • Members
  • Pip
  • 23 posts

  • Calculators:
    fx-9860G

Posted 01 February 2010 - 03:44 PM

aw that's a pitty, I'll have to use another key to get to my menu then. Thanks anyways!

#4 Martin

Martin

    Casio Freak

  • Members
  • PipPipPipPip
  • 121 posts
  • Gender:Male
  • Location:Praha
  • Interests:asm on cfx9850

  • Calculators:
    fx82l
    fx7700GB
    cfx9850G
    TI92
    fx9860G SD
    Rheinmetall KEL IIc
    H. W. Ebmeyer - Tarema
    fx cg20

Posted 01 February 2010 - 04:40 PM

I'd like to know the keycode for the MENU button on my fx-9860G....
EDIT: I'm not talking about the basic keycodes.



Try GetKeyWait
The GetKeyWait function performs a key wait and returns a value indicating the pressed key.
int GetKeyWait(
int sel, // type of waiting
int time, // time out period
int menu, // operation of menu key
unsigned int *keycode // pointer to key code
);
Parameters
sel
This is the type of waiting for key. The following definitions are declared in keybios.h.
KEYWAIT_HALTON_TIMEROFF If there are no characters in the key buffer, this function waits until a
character arrives and then returns immediately.
KEYWAIT_HALTOFF_TIMEROFF If there are no characters in the key buffer, this function returns
immediately.
KEYWAIT_HALTON_TIMERON If no character arrives within the time specified by the time parameter, this
function times out.
time
This is the time out period in seconds. This parameter is used only when the first parameter is
KEYWAIT_HALTON_TIMERON.
menu
If you set 0 to the menu, the menu key performs Main-Menu.
If you set 1 to the menu, the menu key returns the key code.
keycode
If the function succeeds, the function returns key code.
Return Values
The function will return the following values. The following definitions are declared in keybios.h.
KEYREP_NOEVENT Because there are no characters in the key buffer, this function returned immediately.
KEYREP_KEYEVENT Keycode will be set.
KEYREP_TIMEREVENT This function returned because time seconds passed.
Remarks
The Auto Power Off event is also handled by this function. If an Auto Power Off event occurs the application will
not be notified. Once the calculator is turned back on control is returned to the GetKeyWait function.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users