mousePriv.h revision b72771e8c6ba3b3d9ebdd7977730325131ae0f98
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews/*
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews * Copyright (c) 1997-1999 by The XFree86 Project, Inc.
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#ifndef _X_MOUSEPRIV_H
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#define _X_MOUSEPRIV_H
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#include "mouse.h"
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#include "xf86Xinput.h"
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews/* Private interface for the mouse driver. */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrewstypedef struct {
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews const char * name;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews int class;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews const char ** defaults;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews MouseProtocolID id;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews} MouseProtocolRec, *MouseProtocolPtr;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#ifndef VBOX
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrewstypedef struct {
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews int state;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews} ps2PrivRec, *ps2PrivPtr;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#endif
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews/* mouse proto flags */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#define MPF_NONE 0x00
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#define MPF_SAFE 0x01
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews/* pnp.c */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrewsint MouseGetPnpProtocol(InputInfoPtr pInfo);
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#ifdef VBOX
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrewstypedef struct
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews{
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews int screen_no;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews ScreenPtr pScrn;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews int ps2_state;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews} mousePrivRec, *mousePrivPtr;
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#endif
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#endif /* _X_MOUSE_H */
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews