src/events/default_cursor.h
author Sam Lantinga
Fri, 09 Jun 2006 06:42:42 +0000
branchSDL-1.3
changeset 1671 89f7510fe17a
child 2698 e1da92da346c
permissions -rw-r--r--
Moved the cursor handling into the mouse code.
Added support for multiple mice, potentially dynamically added and removed.
slouken@1671
     1
/*
slouken@1671
     2
    SDL - Simple DirectMedia Layer
slouken@1671
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1671
     4
slouken@1671
     5
    This library is free software; you can redistribute it and/or
slouken@1671
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1671
     7
    License as published by the Free Software Foundation; either
slouken@1671
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1671
     9
slouken@1671
    10
    This library is distributed in the hope that it will be useful,
slouken@1671
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1671
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1671
    13
    Lesser General Public License for more details.
slouken@1671
    14
slouken@1671
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1671
    16
    License along with this library; if not, write to the Free Software
slouken@1671
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1671
    18
slouken@1671
    19
    Sam Lantinga
slouken@1671
    20
    slouken@libsdl.org
slouken@1671
    21
*/
slouken@1671
    22
slouken@1671
    23
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
slouken@1671
    24
 * Default cursor - it happens to be the Mac cursor, but could be anything   */
slouken@1671
    25
slouken@1671
    26
#define DEFAULT_CWIDTH	16
slouken@1671
    27
#define DEFAULT_CHEIGHT	16
slouken@1671
    28
#define DEFAULT_CHOTX	0
slouken@1671
    29
#define DEFAULT_CHOTY	0
slouken@1671
    30
slouken@1671
    31
/* Added a real MacOS cursor, at the request of Luc-Olivier de Charrière */
slouken@1671
    32
#define USE_MACOS_CURSOR
slouken@1671
    33
slouken@1671
    34
#ifdef USE_MACOS_CURSOR
slouken@1671
    35
slouken@1671
    36
static unsigned char default_cdata[] = {
slouken@1671
    37
    0x00, 0x00,
slouken@1671
    38
    0x40, 0x00,
slouken@1671
    39
    0x60, 0x00,
slouken@1671
    40
    0x70, 0x00,
slouken@1671
    41
    0x78, 0x00,
slouken@1671
    42
    0x7C, 0x00,
slouken@1671
    43
    0x7E, 0x00,
slouken@1671
    44
    0x7F, 0x00,
slouken@1671
    45
    0x7F, 0x80,
slouken@1671
    46
    0x7C, 0x00,
slouken@1671
    47
    0x6C, 0x00,
slouken@1671
    48
    0x46, 0x00,
slouken@1671
    49
    0x06, 0x00,
slouken@1671
    50
    0x03, 0x00,
slouken@1671
    51
    0x03, 0x00,
slouken@1671
    52
    0x00, 0x00
slouken@1671
    53
};
slouken@1671
    54
static unsigned char default_cmask[] = {
slouken@1671
    55
    0xC0, 0x00,
slouken@1671
    56
    0xE0, 0x00,
slouken@1671
    57
    0xF0, 0x00,
slouken@1671
    58
    0xF8, 0x00,
slouken@1671
    59
    0xFC, 0x00,
slouken@1671
    60
    0xFE, 0x00,
slouken@1671
    61
    0xFF, 0x00,
slouken@1671
    62
    0xFF, 0x80,
slouken@1671
    63
    0xFF, 0xC0,
slouken@1671
    64
    0xFF, 0xE0,
slouken@1671
    65
    0xFE, 0x00,
slouken@1671
    66
    0xEF, 0x00,
slouken@1671
    67
    0xCF, 0x00,
slouken@1671
    68
    0x87, 0x80,
slouken@1671
    69
    0x07, 0x80,
slouken@1671
    70
    0x03, 0x00
slouken@1671
    71
};
slouken@1671
    72
slouken@1671
    73
#else
slouken@1671
    74
slouken@1671
    75
static unsigned char default_cdata[] = {
slouken@1671
    76
    0x00, 0x00,
slouken@1671
    77
    0x40, 0x00,
slouken@1671
    78
    0x60, 0x00,
slouken@1671
    79
    0x70, 0x00,
slouken@1671
    80
    0x78, 0x00,
slouken@1671
    81
    0x7C, 0x00,
slouken@1671
    82
    0x7E, 0x00,
slouken@1671
    83
    0x7F, 0x00,
slouken@1671
    84
    0x7F, 0x80,
slouken@1671
    85
    0x7C, 0x00,
slouken@1671
    86
    0x6C, 0x00,
slouken@1671
    87
    0x46, 0x00,
slouken@1671
    88
    0x06, 0x00,
slouken@1671
    89
    0x03, 0x00,
slouken@1671
    90
    0x03, 0x00,
slouken@1671
    91
    0x00, 0x00
slouken@1671
    92
};
slouken@1671
    93
static unsigned char default_cmask[] = {
slouken@1671
    94
    0x40, 0x00,
slouken@1671
    95
    0xE0, 0x00,
slouken@1671
    96
    0xF0, 0x00,
slouken@1671
    97
    0xF8, 0x00,
slouken@1671
    98
    0xFC, 0x00,
slouken@1671
    99
    0xFE, 0x00,
slouken@1671
   100
    0xFF, 0x00,
slouken@1671
   101
    0xFF, 0x80,
slouken@1671
   102
    0xFF, 0xC0,
slouken@1671
   103
    0xFF, 0x80,
slouken@1671
   104
    0xFE, 0x00,
slouken@1671
   105
    0xEF, 0x00,
slouken@1671
   106
    0x4F, 0x00,
slouken@1671
   107
    0x07, 0x80,
slouken@1671
   108
    0x07, 0x80,
slouken@1671
   109
    0x03, 0x00
slouken@1671
   110
};
slouken@1671
   111
slouken@1671
   112
#endif /* TRUE_MACINTOSH_CURSOR */
slouken@1671
   113
/* vi: set ts=4 sw=4 expandtab: */