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.
menuIf 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.