• Sam Lantinga's avatar
    Date: Tue, 05 Feb 2008 01:41:08 -0500 · d19e81db
    Sam Lantinga authored
    From: Mike Miscevic
    Subject: SDL and capslock/numlock
    
    Find attached a patch against SDL-1.2.13 for check of SDL_NO_LOCK_KEYS
    environment variable. This differs slightly from other patches I've seen
    in that it has 3 modes:
    
    Disable CAPS-LOCK and NUM-LOCK supression of down+up key events,
    suitable for games where the player needs these keys to do more than
    just toggle. A value of 1 will effect both CAPS-LOCK and NUM-LOCK. A
    value of 2 will effect only CAPS-LOCK. A value of 3 will effect only
    NUM-LOCK. All other values have no effect.
    
    This works for me and has been tested on:
    - Fedora 8 64-bit
    - SRCRPM SDL-1.2.13-1.fc8.src.rpm
    - Emeny Territory Quake Wars (ETQW), native 32-bit commercial game
    
    --Mike Miscevic
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402732
    d19e81db
Name
Last commit
Last update
..
audio.html Loading commit data...
cdrom.html Loading commit data...
event.html Loading commit data...
eventfunctions.html Loading commit data...
eventstructures.html Loading commit data...
general.html Loading commit data...
guide.html Loading commit data...
guideaboutsdldoc.html Loading commit data...
guideaudioexamples.html Loading commit data...
guidebasicsinit.html Loading commit data...
guidecdromexamples.html Loading commit data...
guidecredits.html Loading commit data...
guideeventexamples.html Loading commit data...
guideexamples.html Loading commit data...
guideinput.html Loading commit data...
guideinputkeyboard.html Loading commit data...
guidepreface.html Loading commit data...
guidethebasics.html Loading commit data...
guidetimeexamples.html Loading commit data...
guidevideo.html Loading commit data...
guidevideoopengl.html Loading commit data...
index.html Loading commit data...
joystick.html Loading commit data...
reference.html Loading commit data...
sdlactiveevent.html Loading commit data...
sdladdtimer.html Loading commit data...
sdlaudiocvt.html Loading commit data...
sdlaudiospec.html Loading commit data...
sdlblitsurface.html Loading commit data...
sdlbuildaudiocvt.html Loading commit data...
sdlcd.html Loading commit data...
sdlcdclose.html Loading commit data...
sdlcdeject.html Loading commit data...
sdlcdname.html Loading commit data...
sdlcdnumdrives.html Loading commit data...
sdlcdopen.html Loading commit data...
sdlcdpause.html Loading commit data...
sdlcdplay.html Loading commit data...
sdlcdplaytracks.html Loading commit data...
sdlcdresume.html Loading commit data...
sdlcdstatus.html Loading commit data...
sdlcdstop.html Loading commit data...
sdlcdtrack.html Loading commit data...
sdlcloseaudio.html Loading commit data...
sdlcolor.html Loading commit data...
sdlcondbroadcast.html Loading commit data...
sdlcondsignal.html Loading commit data...
sdlcondwait.html Loading commit data...
sdlcondwaittimeout.html Loading commit data...
sdlconvertaudio.html Loading commit data...
sdlconvertsurface.html Loading commit data...
sdlcreatecond.html Loading commit data...
sdlcreatecursor.html Loading commit data...
sdlcreatemutex.html Loading commit data...
sdlcreatergbsurface.html Loading commit data...
sdlcreatergbsurfacefrom.html Loading commit data...
sdlcreatesemaphore.html Loading commit data...
sdlcreatethread.html Loading commit data...
sdlcreateyuvoverlay.html Loading commit data...
sdldelay.html Loading commit data...
sdldestroycond.html Loading commit data...
sdldestroymutex.html Loading commit data...
sdldestroysemaphore.html Loading commit data...
sdldisplayformat.html Loading commit data...
sdldisplayformatalpha.html Loading commit data...
sdldisplayyuvoverlay.html Loading commit data...
sdlenablekeyrepeat.html Loading commit data...
sdlenableunicode.html Loading commit data...
sdlenvvars.html Loading commit data...
sdlevent.html Loading commit data...
sdleventstate.html Loading commit data...
sdlexposeevent.html Loading commit data...
sdlfillrect.html Loading commit data...
sdlflip.html Loading commit data...
sdlfreecursor.html Loading commit data...
sdlfreesurface.html Loading commit data...
sdlfreewav.html Loading commit data...
sdlfreeyuvoverlay.html Loading commit data...
sdlgetappstate.html Loading commit data...
sdlgetaudiostatus.html Loading commit data...
sdlgetcliprect.html Loading commit data...
sdlgetcursor.html Loading commit data...
sdlgeterror.html Loading commit data...
sdlgeteventfilter.html Loading commit data...
sdlgetgammaramp.html Loading commit data...
sdlgetkeyname.html Loading commit data...
sdlgetkeystate.html Loading commit data...
sdlgetmodstate.html Loading commit data...
sdlgetmousestate.html Loading commit data...
sdlgetrelativemousestate.html Loading commit data...
sdlgetrgb.html Loading commit data...
sdlgetrgba.html Loading commit data...
sdlgetthreadid.html Loading commit data...
sdlgetticks.html Loading commit data...
sdlgetvideoinfo.html Loading commit data...
sdlgetvideosurface.html Loading commit data...
sdlglattr.html Loading commit data...
sdlglgetattribute.html Loading commit data...
sdlglgetprocaddress.html Loading commit data...
sdlglloadlibrary.html Loading commit data...
sdlglsetattribute.html Loading commit data...
sdlglswapbuffers.html Loading commit data...
sdlinit.html Loading commit data...
sdlinitsubsystem.html Loading commit data...
sdljoyaxisevent.html Loading commit data...
sdljoyballevent.html Loading commit data...
sdljoybuttonevent.html Loading commit data...
sdljoyhatevent.html Loading commit data...
sdljoystickclose.html Loading commit data...
sdljoystickeventstate.html Loading commit data...
sdljoystickgetaxis.html Loading commit data...
sdljoystickgetball.html Loading commit data...
sdljoystickgetbutton.html Loading commit data...
sdljoystickgethat.html Loading commit data...
sdljoystickindex.html Loading commit data...
sdljoystickname.html Loading commit data...
sdljoysticknumaxes.html Loading commit data...
sdljoysticknumballs.html Loading commit data...
sdljoysticknumbuttons.html Loading commit data...
sdljoysticknumhats.html Loading commit data...
sdljoystickopen.html Loading commit data...
sdljoystickopened.html Loading commit data...
sdljoystickupdate.html Loading commit data...
sdlkey.html Loading commit data...
sdlkeyboardevent.html Loading commit data...
sdlkeysym.html Loading commit data...
sdlkillthread.html Loading commit data...
sdllistmodes.html Loading commit data...
sdlloadbmp.html Loading commit data...
sdlloadwav.html Loading commit data...
sdllockaudio.html Loading commit data...
sdllocksurface.html Loading commit data...
sdllockyuvoverlay.html Loading commit data...
sdlmaprgb.html Loading commit data...
sdlmaprgba.html Loading commit data...
sdlmixaudio.html Loading commit data...
sdlmousebuttonevent.html Loading commit data...
sdlmousemotionevent.html Loading commit data...
sdlmutexp.html Loading commit data...
sdlmutexv.html Loading commit data...
sdlnumjoysticks.html Loading commit data...
sdlopenaudio.html Loading commit data...
sdloverlay.html Loading commit data...
sdlpalette.html Loading commit data...
sdlpauseaudio.html Loading commit data...
sdlpeepevents.html Loading commit data...
sdlpixelformat.html Loading commit data...
sdlpollevent.html Loading commit data...
sdlpumpevents.html Loading commit data...
sdlpushevent.html Loading commit data...
sdlquit.html Loading commit data...
sdlquitevent.html Loading commit data...
sdlquitsubsystem.html Loading commit data...
sdlrect.html Loading commit data...
sdlremovetimer.html Loading commit data...
sdlresizeevent.html Loading commit data...
sdlsavebmp.html Loading commit data...
sdlsempost.html Loading commit data...
sdlsemtrywait.html Loading commit data...
sdlsemvalue.html Loading commit data...
sdlsemwait.html Loading commit data...
sdlsemwaittimeout.html Loading commit data...
sdlsetalpha.html Loading commit data...
sdlsetcliprect.html Loading commit data...
sdlsetcolorkey.html Loading commit data...
sdlsetcolors.html Loading commit data...
sdlsetcursor.html Loading commit data...
sdlseteventfilter.html Loading commit data...
sdlsetgamma.html Loading commit data...
sdlsetgammaramp.html Loading commit data...
sdlsetmodstate.html Loading commit data...
sdlsetpalette.html Loading commit data...
sdlsettimer.html Loading commit data...
sdlsetvideomode.html Loading commit data...
sdlshowcursor.html Loading commit data...
sdlsurface.html Loading commit data...
sdlsyswmevent.html Loading commit data...
sdlthreadid.html Loading commit data...
sdlunlockaudio.html Loading commit data...
sdlunlocksurface.html Loading commit data...
sdlunlockyuvoverlay.html Loading commit data...
sdlupdaterect.html Loading commit data...
sdlupdaterects.html Loading commit data...
sdluserevent.html Loading commit data...
sdlvideodrivername.html Loading commit data...
sdlvideoinfo.html Loading commit data...
sdlvideomodeok.html Loading commit data...
sdlwaitevent.html Loading commit data...
sdlwaitthread.html Loading commit data...
sdlwarpmouse.html Loading commit data...
sdlwasinit.html Loading commit data...
sdlwmgetcaption.html Loading commit data...
sdlwmgrabinput.html Loading commit data...
sdlwmiconifywindow.html Loading commit data...
sdlwmsetcaption.html Loading commit data...
sdlwmseticon.html Loading commit data...
sdlwmtogglefullscreen.html Loading commit data...
thread.html Loading commit data...
time.html Loading commit data...
video.html Loading commit data...
wm.html Loading commit data...