annotate src/constants.c @ 3172:d1b367fc08bc tests-returncode

Use a return code of 1 when the tests fail.
author Thomas Kluyver <takowl@gmail.com>
date Wed, 09 Jan 2013 10:13:57 +0000
parents 549f3fb44e55
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
1 /*
29
ae12316035a9 default font added, all color args changed to RGBA
pygame
parents: 10
diff changeset
2 pygame - Python Game Library
107
cbb297365480 ready for 0.9
pygame
parents: 57
diff changeset
3 Copyright (C) 2000-2001 Pete Shinners
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
4
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
6 modify it under the terms of the GNU Library General Public
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
7 License as published by the Free Software Foundation; either
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
8 version 2 of the License, or (at your option) any later version.
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
9
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
13 Library General Public License for more details.
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
14
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
15 You should have received a copy of the GNU Library General Public
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
16 License along with this library; if not, write to the Free
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
18
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
19 Pete Shinners
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
20 pete@shinners.org
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
21 */
346
5337d682bd10 init cleanup
pygame
parents: 274
diff changeset
22 #define NO_PYGAME_C_API
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
23 #include "pygame.h"
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
24 #include "pgcompat.h"
759
ae48ea30bc50 Some scrap fixes, and code cleanup goodness from Marcus von Appen.
Rene Dudfield <renesd@gmail.com>
parents: 685
diff changeset
25 #include "scrap.h"
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
26
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
27 /* macros used to create each constant */
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
28 #define ADD_ERROR { DECREF_MOD (module); MODINIT_ERROR; }
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
29 #define DEC_CONST(x) \
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
30 if (PyModule_AddIntConstant(module, #x, (int) SDL_##x)) ADD_ERROR
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
31 #define DEC_CONSTK(x) \
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
32 if (PyModule_AddIntConstant(module, #x, (int) SDL##x)) ADD_ERROR
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
33 #define DEC_CONSTN(x) \
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
34 if (PyModule_AddIntConstant(module, #x, (int) x)) ADD_ERROR
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
35 #define DEC_CONSTS(x,y) \
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
36 if (PyModule_AddIntConstant(module, #x, (int) y)) ADD_ERROR
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
37
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
38 #define ADD_STRING_CONST(x) \
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
39 if (PyModule_AddStringConstant(module, #x, x)) ADD_ERROR
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
40
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
41
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
42 static PyMethodDef _constant_methods[] =
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
43 {
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
44 {NULL}
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
45 };
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
46
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
47 /*DOC*/ static char _constants_doc[] =
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
48 /*DOC*/ "Constants defined by SDL and needed in Pygame.\n";
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
49
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
50 MODINIT_DEFINE(constants)
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
51 {
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
52 PyObject* module;
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
53
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
54
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
55
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
56 #if PY3
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
57 static struct PyModuleDef _module = {
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
58 PyModuleDef_HEAD_INIT,
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
59 "constants",
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
60 _constants_doc,
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
61 -1,
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
62 _constant_methods,
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
63 NULL, NULL, NULL, NULL
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
64 };
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
65 #endif
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
66
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
67
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
68
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
69
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
70 #if PY3
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
71 module = PyModule_Create (&_module);
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
72 #else
1588
d2318adf83cb symbian branch merging
Rene Dudfield <renesd@gmail.com>
parents: 1553
diff changeset
73 module = Py_InitModule3 (MODPREFIX "constants",
d2318adf83cb symbian branch merging
Rene Dudfield <renesd@gmail.com>
parents: 1553
diff changeset
74 _constant_methods,
d2318adf83cb symbian branch merging
Rene Dudfield <renesd@gmail.com>
parents: 1553
diff changeset
75 _constants_doc);
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
76 #endif
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
77 if (module == NULL) {
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
78 MODINIT_ERROR;
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
79 }
868
5c55c84986c1 Added pygame.get_sdl_byteorder() to get the SDL byte order. Added pixelarray and mask html docs. Fixed buffer length in surface.get_buffer().
marcus
parents: 837
diff changeset
80
5c55c84986c1 Added pygame.get_sdl_byteorder() to get the SDL byte order. Added pixelarray and mask html docs. Fixed buffer length in surface.get_buffer().
marcus
parents: 837
diff changeset
81 DEC_CONST (LIL_ENDIAN);
5c55c84986c1 Added pygame.get_sdl_byteorder() to get the SDL byte order. Added pixelarray and mask html docs. Fixed buffer length in surface.get_buffer().
marcus
parents: 837
diff changeset
82 DEC_CONST (BIG_ENDIAN);
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
83
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
84 DEC_CONST(YV12_OVERLAY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
85 DEC_CONST(IYUV_OVERLAY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
86 DEC_CONST(YUY2_OVERLAY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
87 DEC_CONST(UYVY_OVERLAY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
88 DEC_CONST(YVYU_OVERLAY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
89
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
90 DEC_CONST(SWSURFACE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
91 DEC_CONST(HWSURFACE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
92 DEC_CONST(RESIZABLE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
93 DEC_CONST(ASYNCBLIT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
94 DEC_CONST(OPENGL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
95 DEC_CONST(OPENGLBLIT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
96 DEC_CONST(ANYFORMAT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
97 DEC_CONST(HWPALETTE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
98 DEC_CONST(DOUBLEBUF);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
99 DEC_CONST(FULLSCREEN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
100 DEC_CONST(HWACCEL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
101 DEC_CONST(SRCCOLORKEY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
102 DEC_CONST(RLEACCELOK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
103 DEC_CONST(RLEACCEL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
104 DEC_CONST(SRCALPHA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
105 DEC_CONST(PREALLOC);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
106 DEC_CONST(NOFRAME);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
107
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
108 DEC_CONST(GL_RED_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
109 DEC_CONST(GL_GREEN_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
110 DEC_CONST(GL_BLUE_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
111 DEC_CONST(GL_ALPHA_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
112 DEC_CONST(GL_BUFFER_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
113 DEC_CONST(GL_DOUBLEBUFFER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
114 DEC_CONST(GL_DEPTH_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
115 DEC_CONST(GL_STENCIL_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
116 DEC_CONST(GL_ACCUM_RED_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
117 DEC_CONST(GL_ACCUM_GREEN_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
118 DEC_CONST(GL_ACCUM_BLUE_SIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
119 DEC_CONST(GL_ACCUM_ALPHA_SIZE);
920
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
120
480
459e677d680a cleaner sdl version check
pygame
parents: 477
diff changeset
121 #if SDL_VERSION_ATLEAST(1, 2, 5)
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
122 DEC_CONST(GL_STEREO);
477
2f089a51eed4 add GL_STEREO
pygame
parents: 476
diff changeset
123 #else
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
124 PyModule_AddIntConstant(module, "GL_STEREO", -1);
477
2f089a51eed4 add GL_STEREO
pygame
parents: 476
diff changeset
125 #endif
920
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
126
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
127
480
459e677d680a cleaner sdl version check
pygame
parents: 477
diff changeset
128 #if SDL_VERSION_ATLEAST(1, 2, 6)
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
129 DEC_CONST(GL_MULTISAMPLEBUFFERS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
130 DEC_CONST(GL_MULTISAMPLESAMPLES);
475
b35f4a2923b4 gl fsaa flags
pygame
parents: 399
diff changeset
131 #else
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
132 PyModule_AddIntConstant(module, "GL_MULTISAMPLEBUFFERS", -1);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
133 PyModule_AddIntConstant(module, "GL_MULTISAMPLESAMPLES", -1);
475
b35f4a2923b4 gl fsaa flags
pygame
parents: 399
diff changeset
134 #endif
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
135
920
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
136 #if SDL_VERSION_ATLEAST(1, 2, 10)
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
137 DEC_CONST(GL_SWAP_CONTROL);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
138 DEC_CONST(GL_ACCELERATED_VISUAL);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
139 #else
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
140 PyModule_AddIntConstant(module, "GL_SWAP_CONTROL", -1);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
141 PyModule_AddIntConstant(module, "GL_ACCELERATED_VISUAL", -1);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
142 #endif
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
143
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
144
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
145 #if SDL_VERSION_ATLEAST(1, 2, 13)
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
146 DEC_CONST(BUTTON_X1);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
147 DEC_CONST(BUTTON_X2);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
148 #else
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
149 PyModule_AddIntConstant(module, "BUTTON_X1", -1);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
150 PyModule_AddIntConstant(module, "BUTTON_X2", -1);
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
151 #endif
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
152
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
153
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
154
c65a322ea131 Updated constants GL_SWAP_CONTROL,GL_ACCELERATED_VISUAL,BUTTON_X1,BUTTON_X2
Rene Dudfield <renesd@gmail.com>
parents: 868
diff changeset
155
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
156 DEC_CONSTN(TIMER_RESOLUTION);
548
d110b5d08dd8 Add a TIMER_RESOLUTION constant from SDL.
bob
parents: 543
diff changeset
157
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
158 DEC_CONSTN(AUDIO_U8);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
159 DEC_CONSTN(AUDIO_S8);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
160 DEC_CONSTN(AUDIO_U16LSB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
161 DEC_CONSTN(AUDIO_S16LSB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
162 DEC_CONSTN(AUDIO_U16MSB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
163 DEC_CONSTN(AUDIO_S16MSB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
164 DEC_CONSTN(AUDIO_U16);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
165 DEC_CONSTN(AUDIO_S16);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
166 DEC_CONSTN(AUDIO_U16SYS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
167 DEC_CONSTN(AUDIO_S16SYS);
475
b35f4a2923b4 gl fsaa flags
pygame
parents: 399
diff changeset
168
759
ae48ea30bc50 Some scrap fixes, and code cleanup goodness from Marcus von Appen.
Rene Dudfield <renesd@gmail.com>
parents: 685
diff changeset
169 #define SCRAP_TEXT PYGAME_SCRAP_TEXT
ae48ea30bc50 Some scrap fixes, and code cleanup goodness from Marcus von Appen.
Rene Dudfield <renesd@gmail.com>
parents: 685
diff changeset
170 #define SCRAP_BMP PYGAME_SCRAP_BMP
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
171 #define SCRAP_PPM PYGAME_SCRAP_PPM
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
172 #define SCRAP_PBM PYGAME_SCRAP_PBM
685
fb4a41fce260 The start of some new blitting functions. add/sub/mult/min/max.
Rene Dudfield <renesd@gmail.com>
parents: 677
diff changeset
173
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
174 ADD_STRING_CONST(SCRAP_TEXT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
175 ADD_STRING_CONST(SCRAP_BMP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
176 ADD_STRING_CONST(SCRAP_PPM);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
177 ADD_STRING_CONST(SCRAP_PBM);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
178 PyModule_AddIntConstant(module, "SCRAP_CLIPBOARD", 0);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
179 PyModule_AddIntConstant(module, "SCRAP_SELECTION", 1);
677
3e8e94054c55 Clipboard manipulation functions. Still needs a unittest, and
Rene Dudfield <renesd@gmail.com>
parents: 627
diff changeset
180
1141
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
181 /* BLEND_ADD is an alias for BLEND_RGB_ADD
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
182 */
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
183
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
184 #define PYGAME_BLEND_RGB_ADD 0x1
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
185 #define PYGAME_BLEND_RGB_SUB 0x2
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
186 #define PYGAME_BLEND_RGB_MULT 0x3
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
187 #define PYGAME_BLEND_RGB_MIN 0x4
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
188 #define PYGAME_BLEND_RGB_MAX 0x5
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
189
1168
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
190 #define PYGAME_BLEND_ADD PYGAME_BLEND_RGB_ADD
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
191 #define PYGAME_BLEND_SUB PYGAME_BLEND_RGB_SUB
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
192 #define PYGAME_BLEND_MULT PYGAME_BLEND_RGB_MULT
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
193 #define PYGAME_BLEND_MIN PYGAME_BLEND_RGB_MIN
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
194 #define PYGAME_BLEND_MAX PYGAME_BLEND_RGB_MAX
999340e73c71 Fixed slicing issues as reported by Lenard. Fixed surface lock tests.
marcus
parents: 1141
diff changeset
195
1141
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
196 #define PYGAME_BLEND_RGBA_ADD 0x6
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
197 #define PYGAME_BLEND_RGBA_SUB 0x7
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
198 #define PYGAME_BLEND_RGBA_MULT 0x8
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
199 #define PYGAME_BLEND_RGBA_MIN 0x9
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
200 #define PYGAME_BLEND_RGBA_MAX 0x10
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
201
3095
549f3fb44e55 Add support for premultiplied alpha, necessary for integration with Cairo.
David Turner <novalis@novalis.org>
parents: 3082
diff changeset
202 #define PYGAME_BLEND_PREMULTIPLIED 0x11
1141
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
203
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
204
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
205 DEC_CONSTS(BLEND_ADD, PYGAME_BLEND_ADD);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
206 DEC_CONSTS(BLEND_SUB, PYGAME_BLEND_SUB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
207 DEC_CONSTS(BLEND_MULT, PYGAME_BLEND_MULT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
208 DEC_CONSTS(BLEND_MIN, PYGAME_BLEND_MIN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
209 DEC_CONSTS(BLEND_MAX, PYGAME_BLEND_MAX);
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
210
1141
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
211 DEC_CONSTS(BLEND_RGB_ADD, PYGAME_BLEND_RGB_ADD);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
212 DEC_CONSTS(BLEND_RGB_SUB, PYGAME_BLEND_RGB_SUB);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
213 DEC_CONSTS(BLEND_RGB_MULT, PYGAME_BLEND_RGB_MULT);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
214 DEC_CONSTS(BLEND_RGB_MIN, PYGAME_BLEND_RGB_MIN);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
215 DEC_CONSTS(BLEND_RGB_MAX, PYGAME_BLEND_RGB_MAX);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
216
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
217 DEC_CONSTS(BLEND_RGBA_ADD, PYGAME_BLEND_RGBA_ADD);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
218 DEC_CONSTS(BLEND_RGBA_SUB, PYGAME_BLEND_RGBA_SUB);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
219 DEC_CONSTS(BLEND_RGBA_MULT, PYGAME_BLEND_RGBA_MULT);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
220 DEC_CONSTS(BLEND_RGBA_MIN, PYGAME_BLEND_RGBA_MIN);
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
221 DEC_CONSTS(BLEND_RGBA_MAX, PYGAME_BLEND_RGBA_MAX);
3095
549f3fb44e55 Add support for premultiplied alpha, necessary for integration with Cairo.
David Turner <novalis@novalis.org>
parents: 3082
diff changeset
222 DEC_CONSTS(BLEND_PREMULTIPLIED, PYGAME_BLEND_PREMULTIPLIED);
1141
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
223
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
224
99a96e8e563d Added BLEND_RGBA_* special flags for blit, and fill.
Rene Dudfield <renesd@gmail.com>
parents: 920
diff changeset
225
794
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
226 DEC_CONST(NOEVENT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
227 DEC_CONST(ACTIVEEVENT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
228 DEC_CONST(KEYDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
229 DEC_CONST(KEYUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
230 DEC_CONST(MOUSEMOTION);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
231 DEC_CONST(MOUSEBUTTONDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
232 DEC_CONST(MOUSEBUTTONUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
233 DEC_CONST(JOYAXISMOTION);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
234 DEC_CONST(JOYBALLMOTION);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
235 DEC_CONST(JOYHATMOTION);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
236 DEC_CONST(JOYBUTTONDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
237 DEC_CONST(JOYBUTTONUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
238 DEC_CONST(VIDEORESIZE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
239 DEC_CONST(VIDEOEXPOSE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
240 DEC_CONST(QUIT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
241 DEC_CONST(SYSWMEVENT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
242 DEC_CONST(USEREVENT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
243 DEC_CONST(NUMEVENTS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
244
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
245 DEC_CONST(HAT_CENTERED);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
246 DEC_CONST(HAT_UP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
247 DEC_CONST(HAT_RIGHTUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
248 DEC_CONST(HAT_RIGHT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
249 DEC_CONST(HAT_RIGHTDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
250 DEC_CONST(HAT_DOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
251 DEC_CONST(HAT_LEFTDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
252 DEC_CONST(HAT_LEFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
253 DEC_CONST(HAT_LEFTUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
254
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
255 DEC_CONSTK(K_UNKNOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
256 DEC_CONSTK(K_FIRST);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
257 DEC_CONSTK(K_BACKSPACE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
258 DEC_CONSTK(K_TAB);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
259 DEC_CONSTK(K_CLEAR);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
260 DEC_CONSTK(K_RETURN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
261 DEC_CONSTK(K_PAUSE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
262 DEC_CONSTK(K_ESCAPE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
263 DEC_CONSTK(K_SPACE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
264 DEC_CONSTK(K_EXCLAIM);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
265 DEC_CONSTK(K_QUOTEDBL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
266 DEC_CONSTK(K_HASH);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
267 DEC_CONSTK(K_DOLLAR);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
268 DEC_CONSTK(K_AMPERSAND);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
269 DEC_CONSTK(K_QUOTE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
270 DEC_CONSTK(K_LEFTPAREN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
271 DEC_CONSTK(K_RIGHTPAREN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
272 DEC_CONSTK(K_ASTERISK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
273 DEC_CONSTK(K_PLUS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
274 DEC_CONSTK(K_COMMA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
275 DEC_CONSTK(K_MINUS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
276 DEC_CONSTK(K_PERIOD);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
277 DEC_CONSTK(K_SLASH);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
278 DEC_CONSTK(K_0);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
279 DEC_CONSTK(K_1);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
280 DEC_CONSTK(K_2);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
281 DEC_CONSTK(K_3);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
282 DEC_CONSTK(K_4);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
283 DEC_CONSTK(K_5);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
284 DEC_CONSTK(K_6);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
285 DEC_CONSTK(K_7);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
286 DEC_CONSTK(K_8);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
287 DEC_CONSTK(K_9);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
288 DEC_CONSTK(K_COLON);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
289 DEC_CONSTK(K_SEMICOLON);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
290 DEC_CONSTK(K_LESS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
291 DEC_CONSTK(K_EQUALS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
292 DEC_CONSTK(K_GREATER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
293 DEC_CONSTK(K_QUESTION);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
294 DEC_CONSTK(K_AT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
295 DEC_CONSTK(K_LEFTBRACKET);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
296 DEC_CONSTK(K_BACKSLASH);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
297 DEC_CONSTK(K_RIGHTBRACKET);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
298 DEC_CONSTK(K_CARET);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
299 DEC_CONSTK(K_UNDERSCORE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
300 DEC_CONSTK(K_BACKQUOTE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
301 DEC_CONSTK(K_a);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
302 DEC_CONSTK(K_b);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
303 DEC_CONSTK(K_c);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
304 DEC_CONSTK(K_d);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
305 DEC_CONSTK(K_e);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
306 DEC_CONSTK(K_f);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
307 DEC_CONSTK(K_g);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
308 DEC_CONSTK(K_h);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
309 DEC_CONSTK(K_i);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
310 DEC_CONSTK(K_j);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
311 DEC_CONSTK(K_k);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
312 DEC_CONSTK(K_l);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
313 DEC_CONSTK(K_m);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
314 DEC_CONSTK(K_n);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
315 DEC_CONSTK(K_o);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
316 DEC_CONSTK(K_p);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
317 DEC_CONSTK(K_q);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
318 DEC_CONSTK(K_r);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
319 DEC_CONSTK(K_s);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
320 DEC_CONSTK(K_t);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
321 DEC_CONSTK(K_u);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
322 DEC_CONSTK(K_v);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
323 DEC_CONSTK(K_w);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
324 DEC_CONSTK(K_x);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
325 DEC_CONSTK(K_y);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
326 DEC_CONSTK(K_z);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
327 DEC_CONSTK(K_DELETE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
328
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
329 DEC_CONSTK(K_KP0);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
330 DEC_CONSTK(K_KP1);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
331 DEC_CONSTK(K_KP2);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
332 DEC_CONSTK(K_KP3);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
333 DEC_CONSTK(K_KP4);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
334 DEC_CONSTK(K_KP5);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
335 DEC_CONSTK(K_KP6);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
336 DEC_CONSTK(K_KP7);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
337 DEC_CONSTK(K_KP8);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
338 DEC_CONSTK(K_KP9);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
339 DEC_CONSTK(K_KP_PERIOD);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
340 DEC_CONSTK(K_KP_DIVIDE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
341 DEC_CONSTK(K_KP_MULTIPLY);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
342 DEC_CONSTK(K_KP_MINUS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
343 DEC_CONSTK(K_KP_PLUS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
344 DEC_CONSTK(K_KP_ENTER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
345 DEC_CONSTK(K_KP_EQUALS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
346 DEC_CONSTK(K_UP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
347 DEC_CONSTK(K_DOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
348 DEC_CONSTK(K_RIGHT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
349 DEC_CONSTK(K_LEFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
350 DEC_CONSTK(K_INSERT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
351 DEC_CONSTK(K_HOME);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
352 DEC_CONSTK(K_END);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
353 DEC_CONSTK(K_PAGEUP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
354 DEC_CONSTK(K_PAGEDOWN);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
355 DEC_CONSTK(K_F1);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
356 DEC_CONSTK(K_F2);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
357 DEC_CONSTK(K_F3);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
358 DEC_CONSTK(K_F4);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
359 DEC_CONSTK(K_F5);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
360 DEC_CONSTK(K_F6);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
361 DEC_CONSTK(K_F7);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
362 DEC_CONSTK(K_F8);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
363 DEC_CONSTK(K_F9);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
364 DEC_CONSTK(K_F10);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
365 DEC_CONSTK(K_F11);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
366 DEC_CONSTK(K_F12);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
367 DEC_CONSTK(K_F13);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
368 DEC_CONSTK(K_F14);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
369 DEC_CONSTK(K_F15);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
370
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
371 DEC_CONSTK(K_NUMLOCK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
372 DEC_CONSTK(K_CAPSLOCK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
373 DEC_CONSTK(K_SCROLLOCK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
374 DEC_CONSTK(K_RSHIFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
375 DEC_CONSTK(K_LSHIFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
376 DEC_CONSTK(K_RCTRL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
377 DEC_CONSTK(K_LCTRL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
378 DEC_CONSTK(K_RALT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
379 DEC_CONSTK(K_LALT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
380 DEC_CONSTK(K_RMETA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
381 DEC_CONSTK(K_LMETA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
382 DEC_CONSTK(K_LSUPER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
383 DEC_CONSTK(K_RSUPER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
384 DEC_CONSTK(K_MODE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
385
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
386 DEC_CONSTK(K_HELP);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
387 DEC_CONSTK(K_PRINT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
388 DEC_CONSTK(K_SYSREQ);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
389 DEC_CONSTK(K_BREAK);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
390 DEC_CONSTK(K_MENU);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
391 DEC_CONSTK(K_POWER);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
392 DEC_CONSTK(K_EURO);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
393 DEC_CONSTK(K_LAST);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
394
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
395 DEC_CONSTN(KMOD_NONE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
396 DEC_CONSTN(KMOD_LSHIFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
397 DEC_CONSTN(KMOD_RSHIFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
398 DEC_CONSTN(KMOD_LCTRL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
399 DEC_CONSTN(KMOD_RCTRL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
400 DEC_CONSTN(KMOD_LALT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
401 DEC_CONSTN(KMOD_RALT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
402 DEC_CONSTN(KMOD_LMETA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
403 DEC_CONSTN(KMOD_RMETA);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
404 DEC_CONSTN(KMOD_NUM);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
405 DEC_CONSTN(KMOD_CAPS);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
406 DEC_CONSTN(KMOD_MODE);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
407
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
408 DEC_CONSTN(KMOD_CTRL);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
409 DEC_CONSTN(KMOD_SHIFT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
410 DEC_CONSTN(KMOD_ALT);
1633c4302f48 Some code cleanups from Marcus von Appen. min->MIN, indentation, other.
Rene Dudfield <renesd@gmail.com>
parents: 759
diff changeset
411 DEC_CONSTN(KMOD_META);
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
412
3080
251ae5c16290 Add USEREVENT_DROPFILE constant for user
Mathieu Virbel <mat@kivy.org>
parents: 1588
diff changeset
413 #define PYGAME_USEREVENT_DROPFILE 0x1000
3082
f1ded632090f fix tabulation to spaces
Mathieu Virbel <mat@kivy.org>
parents: 3080
diff changeset
414 DEC_CONSTS(USEREVENT_DROPFILE, PYGAME_USEREVENT_DROPFILE);
3080
251ae5c16290 Add USEREVENT_DROPFILE constant for user
Mathieu Virbel <mat@kivy.org>
parents: 1588
diff changeset
415
1553
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
416 MODINIT_RETURN (module);
ebd545641c8b merging with python3 branch r 2048
Lenard Lindstrom <len-l@telus.net>
parents: 1168
diff changeset
417
7
99d32cc487b7 Initial revision
ahvezda
parents:
diff changeset
418 }