hi all,
im trying to get freevo to use the numeric keypad. ive tried: KEYMAP[K_2] = 'UP' KEYMAP[K_8] = 'DOWN' and KEYMAP[K_2] = 'MENU_UP' KEYMAP[K_8] = 'MENU_DOWN' and EVENTS['menu']['2'] = EVENT('UP') EVENTS['menu']['8'] = EVENT('DOWN') and EVENTS['menu']['2'] = EVENT('MENU_UP') EVENTS['menu']['8'] = EVENT('MENU_DOWN')
in local_conf.py, but with no luck at all. Is there something im missing? Does anyone have an example local_conf.py with custom keys setup?
cheers, rohbags.
There are some examples in item #19 of the FAQ, however it only shows how to assign keybindings to known keys. The actual setup is in events.py, where all the possible inputs in a given context are defined. Someone will hopefully correct me if I'm wrong here, but at the moment you need to add new keys to events.py if you wish to use them - for instance, to add the '0' on the numpad you add to the DEFAULT_KEYMAP list an item key.K_KP_0 : 'n_0'. Then you can assign an action to the 'n_0' key in your local_conf.py.
It's a hassle, I know, and it needs to be manually added back when you update freevo, but hopefully someone will either show a better way (if one exists) or change freevo to read the keymap from local_conf.py.
-- Ole Andre
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
