• Sam Lantinga's avatar
    Date: Sat, 8 Sep 2001 04:42:23 +0200 · bea3cb1d
    Sam Lantinga authored
    From: Max Horn <max@quendi.de>
    Subject: SDL/OSX: Joystick; Better key handling
    
    I just finished implementing improved keyhandling for OS X (in fact
    the code should be easily ported to the "normal" MacOS part of SDL, I
    just had no chance yet). Works like this:
    First init the mapping table statically like before. Them, it queries
    the OS for the "official" key table, then iterates over all 127
    scancode and gets the associates ascii code. It ignores everythng
    below 32 (has to, as it would lead to many problems if we did not...
    e.g. both ESC and NUM LOCk produce an ascii code 27 on my keyboard),
    and all stuff above 127 is mapped to SDLK_WORLD_* simply in the order
    it is encountered.
    In addition, caps lock is now working, too.
    The code work flawless for me, but since I only have one keyboard, I
    may have not encountered some serious problem... but I am pretty
    confident that it is better than the old code in most cases.
    
    
    The joystick driver works fine for me, too. I think it can be added
    to CVS already. It would simply be helpful if more people would test
    it. Hm, I wonder if Maelstrom or GLTron has Joystick support? That
    would be a wonderful test application :)
    
    
    I also took the liberty of modifying some text files like BUGS,
    README.CVS, README.MacOSX (which now contains the OS X docs I long
    promised)
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40173
    bea3cb1d
Name
Last commit
Last update
..
aalib Loading commit data...
bwindow Loading commit data...
cybergfx Loading commit data...
dga Loading commit data...
directfb Loading commit data...
dummy Loading commit data...
fbcon Loading commit data...
ggi Loading commit data...
maccommon Loading commit data...
macdsp Loading commit data...
macrom Loading commit data...
nanox Loading commit data...
photon Loading commit data...
ps2gs Loading commit data...
quartz Loading commit data...
svga Loading commit data...
vgl Loading commit data...
wincommon Loading commit data...
windib Loading commit data...
windx5 Loading commit data...
x11 Loading commit data...
.cvsignore Loading commit data...
Makefile.am Loading commit data...
SDL_RLEaccel.c Loading commit data...
SDL_RLEaccel_c.h Loading commit data...
SDL_blit.c Loading commit data...
SDL_blit.h Loading commit data...
SDL_blit_0.c Loading commit data...
SDL_blit_1.c Loading commit data...
SDL_blit_A.c Loading commit data...
SDL_blit_N.c Loading commit data...
SDL_bmp.c Loading commit data...
SDL_cursor.c Loading commit data...
SDL_cursor_c.h Loading commit data...
SDL_gamma.c Loading commit data...
SDL_glfuncs.h Loading commit data...
SDL_leaks.h Loading commit data...
SDL_memops.h Loading commit data...
SDL_pixels.c Loading commit data...
SDL_pixels_c.h Loading commit data...
SDL_stretch.c Loading commit data...
SDL_stretch_c.h Loading commit data...
SDL_surface.c Loading commit data...
SDL_sysvideo.h Loading commit data...
SDL_video.c Loading commit data...
SDL_yuv.c Loading commit data...
SDL_yuv_mmx.c Loading commit data...
SDL_yuv_sw.c Loading commit data...
SDL_yuv_sw_c.h Loading commit data...
SDL_yuvfuncs.h Loading commit data...
blank_cursor.h Loading commit data...
default_cursor.h Loading commit data...