/*
 * xqupoint.c --
 *
 * Copyright (c) 1994 Software Research Associates, Inc.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Software Research Associates not be
 * used in advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.  Software Research
 * Associates makes no representations about the suitability of this software
 * for any purpose.  It is provided "as is" without express or implied
 * warranty.
 */
 
#include "xlibInt.h" 

Bool
XQueryPointer(Display *display, Window dummy2, Window *dummy3, Window *dummy4, 
	int *dummy5, int *dummy6, int *dummy8, int *dummy9, 
	unsigned int *mask_return)
{
    display->request++;

    *mask_return = 0;
    if (GetKeyState(VK_LBUTTON) & 0x8000) *mask_return |= Button1Mask;
    if (GetKeyState(VK_MBUTTON) & 0x8000) *mask_return |= Button3Mask; 
    if (GetKeyState(VK_RBUTTON) & 0x8000) *mask_return |= Button2Mask;
	return 1;
}
