Add description for 'remap' to mapster32.cfg, add 'setstartpos' to a.m32.

The latter is commented out, since it has to be *compiled* with
script_expertmode enabled.

git-svn-id: https://svn.eduke32.com/eduke32@2808 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-07-06 11:27:52 +00:00
parent caa36c9d77
commit 39e944dffe
2 changed files with 29 additions and 4 deletions

View file

@ -557,9 +557,18 @@ int32_t writesetup(const char *fn)
#endif #endif
// "; Console key scancode, in hex\n" // "; Console key scancode, in hex\n"
"keyconsole = %X\n" "keyconsole = %X\n"
"; example: make KP0 function as KP5 (counters inability\n" "\n"
"; inability to pan using Shift-KP5-KP8/2 in 3D mode)\n" "; This option allows you to remap keys in case some of them are not available\n"
"; remap = 52-4C\n" "; (like on a notebook). It has to be a comma-separated list of SOURCE-TARGET\n"
"; scancode values, looked up in the keyboard map above. This also means that\n"
"; the key positions count, not their labels for non-US keyboards.\n"
";\n"
"; Example:\n"
"; 1. Map the backslash key (0x2B) to KPENTER (9C), since portable devices\n"
"; often don't have the latter\n"
"; 2. make KP0 (0x52) function as KP5 (0x4C), countering the inability to pan\n"
"; using Shift-KP5-KP8/2 in 3D mode\n"
"; remap = 2B-9C,52-4C\n"
"remap = ", "remap = ",
forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame, vsync, forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame, vsync,

View file

@ -1310,6 +1310,22 @@ defstate listusedtags
} }
ends ends
// This must be *compiled* with script_expertmode
/*
defstate setstartpos
"Set start pos. from spr."
var spr
getnumberfromuser spr "sprite number: " MAXSPRITES 8
seti spr
set startposx .x
set startposy .y
set startposz .z
set startsector .sectnum
set startang .ang
ends
*/
////////// USER AREA ////////// ////////// USER AREA //////////
// key settings // key settings