(C) 1998 AROS - The Amiga Research OS


NAME
#include <clib/keymap_protos.h>

void SetKeyMapDefault (keyMap)

LOCATION
In KeymapBase at offset 5

SYNOPSIS
struct KeyMap * keyMap

FUNCTION
Sets the systemwide default keymap.

INPUTS
keyMap
pointer to KeyMap to set as system default.

RESULT

EXAMPLE

SEE ALSO
AskKeyMapDefault()

NOTES
- This function should only be used by a keymap preferences editor. - Once you have set the keymap, you should NEVER deallocate it, as other apps might have got pointers to it via AskKeyMapDefault(). - You should use the keymap.resource to check if the keymap has allready been added. If not, then remember to arbitrate before adding it to the keymap.resource list of keymaps.

BUGS
When adding the keymap to the keymap.resource one must use Forbid()/Permit() to arbitrate. Ideally one should use semaphores, but the keymap.resource contains no semaphore for this purpose.

INTERNALS

HISTORY