5 # Copyright (C) 2005 David J. Goehrig <dgoehrig@cpan.org>
7 # ------------------------------------------------------------------------------
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2.1 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 # ------------------------------------------------------------------------------
25 # Please feel free to send questions, suggestions or improvements to:
31 package SDL::Constants;
216 SDL_GL_ACCUM_ALPHA_SIZE
217 SDL_GL_ACCUM_BLUE_SIZE
218 SDL_GL_ACCUM_GREEN_SIZE
219 SDL_GL_ACCUM_RED_SIZE
300 SDL_SVG_FLAG_COMPOSITE
302 SDL_SAMPLEFLAG_CANSEEK
305 SDL_SAMPLEFLAG_EAGAIN
310 sub AUDIO_S16 {32784}
311 sub AUDIO_S16MSB {36880}
314 sub AUDIO_U16MSB {4112}
335 sub MIX_DEFAULT_CHANNELS {2}
336 sub MIX_DEFAULT_FORMAT {32784}
337 sub MIX_DEFAULT_FREQUENCY {22050}
338 sub MIX_FADING_IN {2}
339 sub MIX_FADING_OUT {1}
340 sub MIX_MAX_VOLUME {128}
341 sub MIX_NO_FADING {0}
352 sub SDLK_AMPERSAND {38}
353 sub SDLK_ASTERISK {42}
355 sub SDLK_BACKQUOTE {96}
356 sub SDLK_BACKSLASH {92}
357 sub SDLK_BACKSPACE {8}
359 sub SDLK_CAPSLOCK {301}
364 sub SDLK_DELETE {127}
371 sub SDLK_EXCLAIM {33}
387 sub SDLK_GREATER {62}
391 sub SDLK_INSERT {277}
402 sub SDLK_KP_DIVIDE {267}
403 sub SDLK_KP_ENTER {271}
404 sub SDLK_KP_EQUALS {272}
405 sub SDLK_KP_MINUS {269}
406 sub SDLK_KP_MULTIPLY {268}
407 sub SDLK_KP_PERIOD {266}
408 sub SDLK_KP_PLUS {270}
412 sub SDLK_LEFTBRACKET {91}
413 sub SDLK_LEFTPAREN {40}
416 sub SDLK_LSHIFT {304}
417 sub SDLK_LSUPER {311}
421 sub SDLK_NUMLOCK {300}
422 sub SDLK_PAGEDOWN {281}
423 sub SDLK_PAGEUP {280}
429 sub SDLK_QUESTION {63}
431 sub SDLK_QUOTEDBL {34}
436 sub SDLK_RIGHTBRACKET {93}
437 sub SDLK_RIGHTPAREN {41}
439 sub SDLK_RSHIFT {303}
440 sub SDLK_RSUPER {312}
441 sub SDLK_SCROLLOCK {302}
442 sub SDLK_SEMICOLON {59}
445 sub SDLK_SYSREQ {317}
447 sub SDLK_UNDERSCORE {95}
475 sub SDL_ACTIVEEVENT {1}
476 sub SDL_ANYFORMAT {268435456}
477 sub SDL_APPACTIVE {4}
478 sub SDL_APPINPUTFOCUS {2}
479 sub SDL_APPMOUSEFOCUS {1}
480 sub SDL_ASYNCBLIT {4}
481 sub SDL_AUDIO_PAUSED {2}
482 sub SDL_AUDIO_PLAYING {1}
483 sub SDL_AUDIO_STOPPED {0}
484 sub SDL_BUTTON_LEFT {1}
485 sub SDL_BUTTON_MIDDLE {2}
486 sub SDL_BUTTON_RIGHT {4}
487 sub SDL_BUTTON_WHEELUP {8}
488 sub SDL_BUTTON_WHEELDOWN {16}
489 sub SDL_DOUBLEBUF {1073741824}
491 sub SDL_FULLSCREEN {-2147483648}
492 sub SDL_GL_ACCUM_ALPHA_SIZE {11}
493 sub SDL_GL_ACCUM_BLUE_SIZE {10}
494 sub SDL_GL_ACCUM_GREEN_SIZE {9}
495 sub SDL_GL_ACCUM_RED_SIZE {8}
496 sub SDL_GL_ALPHA_SIZE {3}
497 sub SDL_GL_BLUE_SIZE {2}
498 sub SDL_GL_BUFFER_SIZE {4}
499 sub SDL_GL_DEPTH_SIZE {6}
500 sub SDL_GL_DOUBLEBUFFER {5}
501 sub SDL_GL_GREEN_SIZE {1}
502 sub SDL_GL_RED_SIZE {0}
503 sub SDL_GL_STENCIL_SIZE {7}
506 sub SDL_GRAB_QUERY {-1}
507 sub SDL_HAT_CENTERED {0}
510 sub SDL_HAT_LEFTDOWN {12}
511 sub SDL_HAT_LEFTUP {9}
512 sub SDL_HAT_RIGHT {2}
513 sub SDL_HAT_RIGHTDOWN {6}
514 sub SDL_HAT_RIGHTUP {3}
516 sub SDL_HWACCEL {256}
517 sub SDL_HWPALETTE {536870912}
518 sub SDL_HWSURFACE {1}
520 sub SDL_INIT_AUDIO {16}
521 sub SDL_INIT_CDROM {256}
522 sub SDL_INIT_EVERYTHING {65535}
523 sub SDL_INIT_JOYSTICK {512}
524 sub SDL_INIT_NOPARACHUTE {1048576}
525 sub SDL_INIT_TIMER {1}
526 sub SDL_INIT_VIDEO {32}
527 sub SDL_IYUV_OVERLAY {1448433993}
528 sub SDL_JOYAXISMOTION {7}
529 sub SDL_JOYBALLMOTION {8}
530 sub SDL_JOYBUTTONDOWN {10}
531 sub SDL_JOYBUTTONUP {11}
532 sub SDL_JOYHATMOTION {9}
535 sub SDL_MIX_MAXVOLUME {128}
536 sub SDL_MOUSEBUTTONDOWN {5}
537 sub SDL_MOUSEBUTTONUP {6}
538 sub SDL_MOUSEMOTION {4}
540 sub SDL_OPENGLBLIT {10}
541 sub SDL_PREALLOC {16777216}
546 sub SDL_RESIZABLE {16}
547 sub SDL_RLEACCEL {16384}
548 sub SDL_RLEACCELOK {8192}
549 sub SDL_SRCALPHA {65536}
550 sub SDL_SRCCOLORKEY {4096}
551 sub SDL_SWSURFACE {0}
552 sub SDL_SYSWMEVENT {13}
553 sub SDL_UYVY_OVERLAY {1498831189}
554 sub SDL_VIDEOEXPOSE {17}
555 sub SDL_VIDEORESIZE {16}
556 sub SDL_YUY2_OVERLAY {844715353}
557 sub SDL_YV12_OVERLAY {842094169}
558 sub SDL_YVYU_OVERLAY {1431918169}
560 sub SMPEG_PLAYING {1}
561 sub SMPEG_STOPPED {0}
565 sub TTF_STYLE_BOLD {1}
566 sub TTF_STYLE_ITALIC {2}
567 sub TTF_STYLE_NORMAL {0}
568 sub TTF_STYLE_UNDERLINE {4}
569 sub UNICODE_BLENDED {256}
570 sub UNICODE_SHADED {128}
571 sub UNICODE_SOLID {64}
572 sub UTF8_BLENDED {32}
575 sub SDL_SVG_FLAG_DIRECT {0}
576 sub SDL_SVG_FLAG_COMPOSITE {1}
577 sub SDL_SAMPLEFLAG_NONE {0}
578 sub SDL_SAMPLEFLAG_CANSEEK {1}
579 sub SDL_SAMPLEFLAG_EOF {1<<29}
580 sub SDL_SAMPLEFLAG_ERROR {1<<30}
581 sub SDL_SAMPLEFLAG_EAGAIN {1<<31}