Added notes to the manpage

This commit is contained in:
Sascha Hlusiak
2007-07-07 22:52:24 +02:00
parent a24a5eeb30
commit 2b54ee1b02
2 changed files with 14 additions and 2 deletions

View File

@@ -209,9 +209,12 @@ will generate a lowercase
is for the
.IR "space " key.
.SH "NOTES"
The driver does no hotplugging. The joystick needs to be plugged in when the driver is loaded. If the joystick is unplugged, the driver deactivates itself.
.SH "SEE ALSO"
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__), xmodmap(1)
.SH AUTHORS
Sascha Hlusiak
Sascha Hlusiak (2007)
.fi
Frederic Lepied (1995-1999)

View File

@@ -34,12 +34,21 @@
#include <X11/extensions/XKBsrv.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
// #include <xf86Xinput.h>
#include "jstk.h"
#include "jstk_key.h"
#define MIN_KEYCODE 8
/**
* Xorg should allow us to have a separate keymap
* If a keyboard is defined, there already is a keymap and we have to use it
* If not, we have to provide our own keymap
*
* Since we don't know we do NOTHING. :-( So we assume, you have a keyboard attached
**/
int
jstkInitKeys(DeviceIntPtr pJstk, JoystickDevPtr priv)
{