mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-21 01:13:38 +00:00
Add initial Xinput support for XDarwin (Greg Parker).
This commit is contained in:
parent
41641c11ec
commit
d380647739
2 changed files with 341 additions and 3 deletions
|
|
@ -29,7 +29,7 @@
|
|||
* holders shall not be used in advertising or otherwise to promote the sale,
|
||||
* use or other dealings in this Software without prior written authorization.
|
||||
*/
|
||||
/* $XdotOrg: xc/programs/Xserver/hw/darwin/darwin.c,v 1.1.4.2.4.1.6.3 2004/04/20 03:27:08 gisburn Exp $ */
|
||||
/* $XdotOrg: xc/programs/Xserver/hw/darwin/darwin.c,v 1.2 2004/04/23 19:06:15 eich Exp $ */
|
||||
/* $XFree86: xc/programs/Xserver/hw/darwin/darwin.c,v 1.55 2003/11/15 00:07:09 torrey Exp $ */
|
||||
|
||||
#include "X.h"
|
||||
|
|
@ -48,6 +48,13 @@
|
|||
#include "xf86Date.h"
|
||||
#include "dix.h"
|
||||
|
||||
#ifdef XINPUT
|
||||
# include "XI.h"
|
||||
# include "XIproto.h"
|
||||
# include "exevents.h"
|
||||
# include "extinit.h"
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/syslimits.h>
|
||||
|
|
@ -404,6 +411,22 @@ static int DarwinMouseProc(
|
|||
miPointerGetMotionEvents,
|
||||
DarwinChangePointerControl,
|
||||
0 );
|
||||
#ifdef XINPUT
|
||||
InitValuatorAxisStruct( pPointer,
|
||||
0, // X axis
|
||||
0, // min value
|
||||
16000, // max value (fixme screen size?)
|
||||
1, // resolution (fixme ?)
|
||||
1, // min resolution
|
||||
1 ); // max resolution
|
||||
InitValuatorAxisStruct( pPointer,
|
||||
1, // X axis
|
||||
0, // min value
|
||||
16000, // max value (fixme screen size?)
|
||||
1, // resolution (fixme ?)
|
||||
1, // min resolution
|
||||
1 ); // max resolution
|
||||
#endif
|
||||
break;
|
||||
|
||||
case DEVICE_ON:
|
||||
|
|
@ -697,13 +720,18 @@ void OsVendorInit(void)
|
|||
}
|
||||
}
|
||||
|
||||
/* ddxInitGlobals - called by |InitGlobals| from os/util.c */
|
||||
|
||||
/*
|
||||
* ddxInitGlobals
|
||||
* Called by InitGlobals() from os/util.c.
|
||||
*/
|
||||
void ddxInitGlobals(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ddxProcessArgument --
|
||||
* ddxProcessArgument
|
||||
* Process device-dependent command line args. Returns 0 if argument is
|
||||
* not device dependent, otherwise Count of number of elements of argv
|
||||
* that are part of a device dependent commandline option.
|
||||
|
|
|
|||
Loading…
Reference in a new issue