12.07.2015 Views

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NAMESYNOPSISsm_u_keychg - logical key translation hook#include "smdefs.h"extern struct fnc_data *sm_u_keychg;int mykeychg (input_key)int input_key;DESCRIPTIONThis is a user-installable function called from sm_getkey. You can install yourown by calling sm_install with KEYCHG_FUNC.The argument to this function is a logical key read by sm_getkey; you may putspecial key processing here. If your function returns zero, the key is removedfrom the input stream, and sm_getkey reads in the next one without returning toits caller. If your function returns any other value, sm_getkey returns thatdirectly to its caller.See sm_u_play for an additional example of a keychange function.Note: you may call the function you supply for this hook anything you like; itis included in the manual under this head only for definiteness. In fact, thename on this page is one you should not call your function, because it willconflict with the global variable used by <strong>JYACC</strong> <strong>FORMAKER</strong> to store yourfunction's address.RETURNSas described aboveVARIANTS AND RELATED FUNCTIONSsm_install (which_hook, what_func, howmany);sm_getkey ();

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!