Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TCXL Database - kbndset, kusrset http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
KbndSet, KusrSet

Bind function and return keycode to passed keycode.

Header File.....TCXLinp.h

Prototype.......IntT CTYP KbndSet(KeyT kc, VfvCP fn, KeyT rc);

Source File.....EVT\KBNDSET.C
                EVT\KUSRSET.C

Arguments.......kc -  Keycode to Bind.
                fn -  Function to Call When Key is Pressed.

                rc -  Keycode to Return to Caller After 'f' is Completed.
                      If zero, then nothing will be returned, and execution
                      will resume as if no key had been pressed.
                kb -  Key Binding stack

Returns.........0 on success, 1 on allocation failure.

Notes...........Binds a keypress to a function call.  Works by intercepting
                any calls to TCXL input functions.  During Input
                processing, the input function will determine if a key-
                binding exists; if so, the bound routine will be executed,
                and the appropriate key will be returned to the calling
                function.  If no binding exists, the Input System will
                continue processing as normal.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson