Unifdef support for xinput ABI up to 10.
This commit is contained in:
parent
e4c257bcd3
commit
be13f4d35d
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: emumb.c,v 1.4 2011/05/08 10:38:13 matthieu Exp $ */
|
||||
/* $OpenBSD: emumb.c,v 1.5 2011/07/17 13:08:38 matthieu Exp $ */
|
||||
/*
|
||||
* Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
|
||||
* Copyright 1993 by David Dawes <dawes@xfree86.org>
|
||||
@ -54,10 +54,9 @@ enum {
|
||||
MBEMU_AUTO
|
||||
};
|
||||
|
||||
#ifdef HAVE_PROPERTIES
|
||||
static Atom prop_mbemu = 0; /* Middle button emulation on/off property */
|
||||
static Atom prop_mbtimeout = 0; /* Middle button timeout property */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Lets create a simple finite-state machine for 3 button emulation:
|
||||
*
|
||||
@ -354,7 +353,6 @@ wsmbEmuEnable(InputInfoPtr pInfo, BOOL enable)
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_PROPERTIES
|
||||
static int
|
||||
wsmbEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
||||
BOOL checkonly)
|
||||
@ -425,4 +423,3 @@ wsmbEmuInitProperty(DeviceIntPtr dev)
|
||||
|
||||
XIRegisterPropertyHandler(dev, wsmbEmuSetProperty, NULL, NULL);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user