f7bb9e2167
results of an idea I discussed in IRC changed the way the lookup in the remap file works.. entries consist of 3 int [action, button, prebtn] context look up table is at the beginning action_code contains the (context | CONTEXT_REMAPPED) button_code contains the index of the first remapped action for the matched context [0] CORE_CONTEXT_REMAP(ctx1) offset1=(3), count=(1) [1] CORE_CONTEXT_REMAP(ctx2, offset2=(5), count=(1) [2] sentinel, 0, 0 [3] act0, btn, 0 [4] sentinel 0, 0 [5] act1, btn, 0 [6] sentinel, 0, 0 Note: last entry of each group is always the sentinel [CONTEXT_STOPSEARCHING, BUTTON_NONE, BUTTON_NONE] contexts must match exactly -- re-mapped contexts run before the built in w/ fall through contexts ie. you can't remap std_context and expect it to match std_context actions from the WPS context. -- Done -- Code for reading core remap entries -- Done -- import of core remap entires from disk -- Done -- plugin to set new key mapping (the hard part) The plugin is started and FULLY functional you can add actions and contexts you can change context, action, button, prebtn delete keymap files load keymapfiles save user keymaps test keymaps before applying them loading keymaps to core still requires restart ----------------------------------------------------------------------------------------------- Change-Id: Ib8b88c5ae91af4d540e1829de5db32669cd68203
195 lines
3 KiB
Text
195 lines
3 KiB
Text
2048,games
|
|
alpine_cdc,apps
|
|
alarmclock,apps
|
|
announce_status,demos
|
|
autostart,apps
|
|
battery_bench,apps
|
|
bench_scaler,apps
|
|
blackjack,games
|
|
bmp,viewers
|
|
boomshine,games
|
|
bounce,demos
|
|
brickmania,games
|
|
bubbles,games
|
|
calculator,apps
|
|
calendar,apps
|
|
chessbox,games
|
|
chessclock,apps
|
|
chip8,viewers
|
|
chopper,games
|
|
clix,games
|
|
clock,apps
|
|
codebuster,games
|
|
credits,viewers
|
|
cube,demos
|
|
db_folder_select,viewers
|
|
demystify,demos
|
|
dice,games
|
|
dict,apps
|
|
disktidy,apps
|
|
doom,games
|
|
duke3d,games
|
|
euroconverter,apps
|
|
fft,demos
|
|
fire,demos
|
|
fireworks,demos
|
|
firmware_flash,apps
|
|
flipit,games
|
|
frotz,viewers
|
|
goban,games
|
|
greyscale,demos
|
|
helloworld,demos
|
|
imageviewer,viewers
|
|
invadrox,games
|
|
iriver_flash,apps
|
|
iriverify,viewers
|
|
jackpot,games
|
|
jewels,games
|
|
jpeg,viewers
|
|
keybox,apps
|
|
keyremap,apps
|
|
lamp,apps
|
|
logo,demos
|
|
lrcplayer,apps
|
|
lua,viewers
|
|
lua_scripts,demos
|
|
fractals,demos
|
|
main_menu_config,apps
|
|
matrix,demos
|
|
maze,games
|
|
mazezam,games
|
|
md5sum,apps
|
|
mem_mon,apps
|
|
metronome,apps
|
|
midi2wav,viewers
|
|
midi,viewers
|
|
mikmod,viewers
|
|
minesweeper,games
|
|
mosaique,demos
|
|
mp3_encoder,apps
|
|
mpegplayer,viewers
|
|
nim,games
|
|
open_plugins,viewers
|
|
oscilloscope,demos
|
|
otp,apps
|
|
pacbox,games
|
|
pdbox,viewers
|
|
pegbox,games
|
|
periodic_table,apps
|
|
pictureflow,demos
|
|
pitch_detector,apps
|
|
pitch_screen,viewers
|
|
pixel-painter,games
|
|
plasma,demos
|
|
png,viewers
|
|
gif,viewers
|
|
pong,games
|
|
ppm,viewers
|
|
properties,viewers
|
|
quake,games
|
|
random_folder_advance_config,apps
|
|
rb_info,demos
|
|
remote_control,apps
|
|
resistor,apps
|
|
reversi,games
|
|
robotfindskitten,games
|
|
rockblox,games
|
|
rockblox1d,games
|
|
rockbox_flash,viewers
|
|
rockboy,viewers
|
|
rocklife,demos
|
|
rockpaint,apps
|
|
search,viewers
|
|
searchengine,viewers
|
|
settings_dumper,apps
|
|
sgt-blackbox,games
|
|
sgt-bridges,games
|
|
sgt-cube,games
|
|
sgt-dominosa,games
|
|
sgt-fifteen,games
|
|
sgt-filling,games
|
|
sgt-flip,games
|
|
sgt-flood,games
|
|
sgt-galaxies,games
|
|
sgt-group,games
|
|
sgt-guess,games
|
|
sgt-inertia,games
|
|
sgt-keen,games
|
|
sgt-lightup,games
|
|
sgt-loopy,games
|
|
sgt-magnets,games
|
|
sgt-map,games
|
|
sgt-mines,games
|
|
sgt-net,games
|
|
sgt-netslide,games
|
|
sgt-palisade,games
|
|
sgt-pattern,games
|
|
sgt-pearl,games
|
|
sgt-pegs,games
|
|
sgt-puzzles,games
|
|
sgt-range,games
|
|
sgt-rect,games
|
|
sgt-samegame,games
|
|
sgt-separate,games
|
|
sgt-signpost,games
|
|
sgt-singles,games
|
|
sgt-sixteen,games
|
|
sgt-slant,games
|
|
sgt-slide,games
|
|
sgt-sokoban,games
|
|
sgt-solo,games
|
|
sgt-tents,games
|
|
sgt-towers,games
|
|
sgt-tracks,games
|
|
sgt-twiddle,games
|
|
sgt-undead,games
|
|
sgt-unequal,games
|
|
sgt-unruly,games
|
|
sgt-untangle,games
|
|
shopper,viewers
|
|
shortcuts_append,viewers
|
|
shortcuts_view,viewers
|
|
sliding_puzzle,games
|
|
snake,games
|
|
snake2,games
|
|
snow,demos
|
|
sokoban,games
|
|
solitaire,games
|
|
sort,viewers
|
|
spacerocks,games
|
|
splitedit,apps
|
|
speedread,viewers
|
|
star,games
|
|
starfield,demos
|
|
stats,apps
|
|
stopwatch,apps
|
|
sudoku,games
|
|
test_boost,apps
|
|
test_mem,apps
|
|
test_codec,viewers
|
|
test_disk,apps
|
|
test_fps,apps
|
|
test_grey,apps
|
|
test_gfx,apps
|
|
test_resize,apps
|
|
test_sampr,apps
|
|
test_scanrate,apps
|
|
test_touchscreen,apps
|
|
test_viewports,apps
|
|
test_greylib_bitmap_scale,viewers
|
|
text_editor,apps
|
|
text_viewer,viewers
|
|
theme_remove,viewers
|
|
vbrfix,viewers
|
|
video,viewers
|
|
viewer,viewers
|
|
vu_meter,demos
|
|
wav2wv,viewers
|
|
wavplay,viewers
|
|
wavrecord,apps
|
|
wavview,viewers
|
|
wolf3d,games
|
|
wormlet,games
|
|
xobox,games
|
|
xworld,games
|
|
zxbox,viewers
|