Maybe I can elaborate a bit on how vice3DS handles input:
To Vice3DS every input is a "key" (3ds buttons, soft buttons, soft keyboard buttons, even d/c-pad directions).
The action to be taken when a key is pressed (this is called an "event"), depends on the configuration:
- Is the event-key mapped to another key (in Misc-> Key mappings) ? If yes, change the key in the event to the mapped key and continue with 2.
- Is the event-key part of a joystick keyset configured for a joystick port, an autofire key or mapped to a mouse button (in Misc -> Key mappings)? If yes, do the appropriate action on the emulated joystick port
- Is the event-key a hotkey (as configured in Misc -> Hokeys)? If yes, execute the appropriate menu entry for this hotkey.
- Is the event-key a key on the soft keyboard? If yes, forward the keypress to the emulated C64.
So, to solve your problem of assigning the L-button to switch the bottom screen off and on, you would simply need to to map a hotkey:
- Open vice menu, go to menu "Misc" and move the cursor to menu entry "Power off bottom screen backlight"
- Push the "Map Hotkey"-Button (normally this is the R-button - if not configured otherwise in sdl-vicerc)
- Push the L-button to define the Hotkey mapping.
Now, the menu entry "Power off bottom screen backlight" is executed whenever you push your new hotkey L-button.
Your original solution is to map the L-button to a soft button (via Key mappings) which - in turn - is a hotkey for the backlight menu entry. This works, but is not straightforward. Apart from this, if you ever choose to change the function for the mentioned soft button, you would change the function of your L-button as well ...
Hope, I could clarify things a bit ...