| version 1.7 | | version 1.8 |
|---|
| | |
| * Functions to access Mouse and Cyberman... | | * Functions to access Mouse and Cyberman... |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.8 2003/03/09 06:34:08 donut |
| | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | | * |
| * Revision 1.7 2001/12/07 05:38:31 donut | | * Revision 1.7 2001/12/07 05:38:31 donut |
| * Fix mismatched arg types in the win32 code, work around byte being defined by windows headers as well as our own, and allow overriding of make vars. | | * Fix mismatched arg types in the win32 code, work around byte being defined by windows headers as well as our own, and allow overriding of make vars. |
| * | | * |
| | |
| * | | * |
| */ | | */ |
| | | |
| #define byte w32_byte | | |
| #define WIN32_LEAN_AND_MEAN | | #define WIN32_LEAN_AND_MEAN |
| #include <dinput.h> | | #include <dinput.h> |
| #undef byte | | |
| | | |
| | | |
| #include <stdlib.h> | | #include <stdlib.h> |
| | |
| typedef struct Sprite { | | typedef struct Sprite { |
| ushort width; | | ushort width; |
| ushort height; | | ushort height; |
| byte *pixels; | | sbyte *pixels; |
| byte *mask; | | sbyte *mask; |
| } Sprite; | | } Sprite; |
| | | |
| //Sprite mouse_sprite = { cursor_width, cursor_height, cursor_bits, cursor_mask_bits}; | | //Sprite mouse_sprite = { cursor_width, cursor_height, cursor_bits, cursor_mask_bits}; |
| | | |
| //byte *behind_mouse; | | //sbyte *behind_mouse; |
| //byte behind_mouse[cursor_width*cursor_height]; | | //sbyte behind_mouse[cursor_width*cursor_height]; |
| | | |
| | | |
| void DrawMouse(void) | | void DrawMouse(void) |