version 1.5 | | version 1.6 |
---|
| | |
* Functions to access Mouse and Cyberman... | | * Functions to access Mouse and Cyberman... |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.6 2000/01/12 09:42:00 donut |
| | * w32: check -no(mouse|joystick) within respective _init() funcs |
| | * |
* Revision 1.5 1999/10/15 05:27:48 donut | | * Revision 1.5 1999/10/15 05:27:48 donut |
* include to fix undef'd err | | * include to fix undef'd err |
* | | * |
| | |
#include "mouse.h" | | #include "mouse.h" |
#include "mono.h" | | #include "mono.h" |
#include "timer.h" | | #include "timer.h" |
| | #include "args.h" |
| | |
// These are to kludge up a bit my slightly broken GCC directx port. | | // These are to kludge up a bit my slightly broken GCC directx port. |
#ifndef E_FAIL | | #ifndef E_FAIL |
| | |
#define SCR_WIDTH 640 | | #define SCR_WIDTH 640 |
#define SCR_HEIGHT 480 | | #define SCR_HEIGHT 480 |
| | |
LPDIRECTINPUT g_lpdi; | | LPDIRECTINPUT g_lpdi=NULL; |
LPDIRECTINPUTDEVICE g_lpdidMouse; | | LPDIRECTINPUTDEVICE g_lpdidMouse=NULL; |
extern HWND g_hWnd; | | extern HWND g_hWnd; |
| | |
| | |
| | |
| | |
int mouse_init(int unused) | | int mouse_init(int unused) |
{ | | { |
| | if (FindArg( "-nomouse" )) |
| | return 0; |
if (Mouse_installed) | | if (Mouse_installed) |
return Mouse.num_buttons; | | return Mouse.num_buttons; |
| | |