8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright 2002 Red Hat Inc., Durham, North Carolina.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * All Rights Reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Permission is hereby granted, free of charge, to any person obtaining
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * a copy of this software and associated documentation files (the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * "Software"), to deal in the Software without restriction, including
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * without limitation on the rights to use, copy, modify, merge,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * publish, distribute, sublicense, and/or sell copies of the Software,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * and to permit persons to whom the Software is furnished to do so,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * subject to the following conditions:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The above copyright notice and this permission notice (including the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * next paragraph) shall be included in all copies or substantial
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * portions of the Software.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * SOFTWARE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Authors:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Rickard E. (Rik) Faith <faith@redhat.com>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/** \file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Interface to functions supporting motion events. \see dmxmotion.c */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#ifndef _DMXMOTION_H_
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define _DMXMOTION_H_
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern int dmxPointerGetMotionBufferSize(void);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern int dmxPointerGetMotionEvents(DeviceIntPtr pDevice,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster xTimecoord * coords,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster unsigned long start,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster unsigned long stop, ScreenPtr pScreen);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern void dmxPointerPutMotionEvent(DeviceIntPtr pDevice,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster int firstAxis, int axesCount, int *v,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster unsigned long time);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster