xfree86: remove xf86XInputSetScreen
Keeping track of which screen the pointer within the input driver is obsolete now. To bind to a screen, use the transformation matrix instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
32b289e46c
commit
9cbfa4739a
|
@ -1345,25 +1345,6 @@ xf86ScaleAxis(int Cx,
|
||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* This function checks the given screen against the current screen and
|
|
||||||
* makes changes if appropriate. It should be called from an XInput driver's
|
|
||||||
* ReadInput function before any events are posted, if the device is screen
|
|
||||||
* specific like a touch screen.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
xf86XInputSetScreen(InputInfoPtr pInfo,
|
|
||||||
int screen_number,
|
|
||||||
int x,
|
|
||||||
int y)
|
|
||||||
{
|
|
||||||
if (miPointerGetScreen(pInfo->dev) !=
|
|
||||||
screenInfo.screens[screen_number]) {
|
|
||||||
miPointerSetScreen(pInfo->dev, screen_number, x, y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval, int maxval,
|
xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval, int maxval,
|
||||||
int resolution, int min_res, int max_res, int mode)
|
int resolution, int min_res, int max_res, int mode)
|
||||||
|
|
|
@ -143,7 +143,6 @@ extern _X_EXPORT void xf86PostKeyboardEvent(DeviceIntPtr device, unsigned int ke
|
||||||
int is_down);
|
int is_down);
|
||||||
extern _X_EXPORT InputInfoPtr xf86FirstLocalDevice(void);
|
extern _X_EXPORT InputInfoPtr xf86FirstLocalDevice(void);
|
||||||
extern _X_EXPORT int xf86ScaleAxis(int Cx, int to_max, int to_min, int from_max, int from_min);
|
extern _X_EXPORT int xf86ScaleAxis(int Cx, int to_max, int to_min, int from_max, int from_min);
|
||||||
extern _X_EXPORT void xf86XInputSetScreen(InputInfoPtr pInfo, int screen_number, int x, int y);
|
|
||||||
extern _X_EXPORT void xf86ProcessCommonOptions(InputInfoPtr pInfo, XF86OptionPtr options);
|
extern _X_EXPORT void xf86ProcessCommonOptions(InputInfoPtr pInfo, XF86OptionPtr options);
|
||||||
extern _X_EXPORT Bool xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval,
|
extern _X_EXPORT Bool xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval,
|
||||||
int maxval, int resolution, int min_res,
|
int maxval, int resolution, int min_res,
|
||||||
|
|
Loading…
Reference in New Issue