Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Ability to re-map Keys

Tmyclyk Dmytryk
Registered User
Join date: 1 Jul 2005
Posts: 34
08-05-2006 18:10
Vote on this now!

Second Life should feature a way to re-map keys such as:
  1. Crouching
  2. Walking/Movement
  3. FullScreen Controls

etc.. just a short list of examples.

What does "re-map" mean?
key re-mapping is the ability to change the function/key associations within a program such as Second Life, thus making one key that originally by default performed one action or task by whim or will of the user can perform another task.

Some examples for useful situations in this
This would be helpful with custom keyboards, or people who may want to use different keys for different functions. Overall the function shouldn't be too hard to incorporate and would be helpful.

* For other gamers it is common for the "ctrl" key to be the crouch key so this is a classic example that people from different backgrounds may be adjusted to functions in one manner or another.

* It might also be helpful for using other input devices such as a flight joystick or gamepad thus adding functionality to some in-game games for second life or even flight for a helicopter or aircraft of some sort.

* One situation I keep facing which I feel is problematic is when my client lags it doesn't unregister a key being pressed down (such as the enter key) and when I go to alt+tab to the next window my Second Life believes I press the alt+enter combination thus my client goes fullscreen.

Conclusion
Listed here are examples in which this feature would be highly helpful and there may be many more situations in which this is helpful. Feedback is welcome, when the bottom line is met though this feature is one that SL should really support. With the abilities to grab key inputs from scripts this would expand functionality immensely within the Second Life world.

Vote on this now!
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
08-06-2006 07:38
Alternatively, do this in two stages:

(1) Allow LSL to take direct keyboard input (terminated by the user hitting "escape" or clicking "Release Controls";).
(2) Allow LSL more control over the avatar state;
CODE

integer PERMS = PERMISSION_TAKE_KEYBOARD | PERMISSION_CONTROL_AVATAR;
default
{
state_entry()
{
llRequestPermissions(llGetOwner(), PERMS);
}
on_rez(integer p)
{
llResetScript();
}
run_time_permissions(integer p)
{
if((p & PERMS) == PERMS)
llTakeKeys([KEY_CONTROL],TRUE,TRUE); // like llTakeControl()
}
keyboard(integer key,integer action,integer modifiers)
{
if(key == KEY_CONTROL && modifiers == MODIFIER_NONE)
{
if(action == KEYSTROKE_DOWN)
llControlAvatar(AVATAR_START_CROUCH);
else if(action == KEYSTROKE_UP)
llControlAvatar(AVATAR_STOP_CROUCH);
}
}
}
You could make the code more elaborate, like having to hold control for half a second to start the crouch, but you get the idea...
Tmyclyk Dmytryk
Registered User
Join date: 1 Jul 2005
Posts: 34
08-09-2006 09:53
Yes the ability to plug this straight into LSL would be a great addition as well, I feel this could be a powerful and useful new feature if implemented, any other ideas?
Dingo Warrigal
Registered User
Join date: 30 Jun 2006
Posts: 20
08-09-2006 10:26
I wrote this program called "Moon Boots" that gives you "lunar" gravity, and it'd be bloody great if I could directly grab the "fly" key and make you "moonwalk" in humungous galumphing jumps instead.
Tmyclyk Dmytryk
Registered User
Join date: 1 Jul 2005
Posts: 34
08-10-2006 03:50
Yes with the ability to grab input keys directly it would be very useful, so basically in addition to a preferences panel to change the functions of each key new scripting methods could come in to help better direct controlling of vehicles etc.
Gando Thurston
Registered User
Join date: 13 Jun 2006
Posts: 2
YES! Re-mapping is most important to customization
12-13-2006 12:27
I'd like to see the standard gaming re-map, where you can have two keys do the same function. This allows us to leave the standard keys, and re-map our special keys. This means when you ask someone how to do something their answer will work, but you could have the key of your choice as well (great for newbies).

Also, I like the idea of adding the mouse, joystick, and other input devices in as part of the selection. I'd love to be able to re-map Alt, for instance, to my mouse 3, 4, or 5 keys, so alt look could be done with just the mouse.
Karlhockey Forte
Registered User
Join date: 28 Jun 2006
Posts: 1
01-26-2007 16:43
Well, you can remap keys be modding the client files themselves, will post which file later :)
Poppet McGimsie
Proprietrix, WUNDERBAR
Join date: 28 Jul 2006
Posts: 197
01-26-2007 21:18
It's the keys file in the app_settings folder of your second life folder. I have the movement keys mapped slightly differently than the default map, and every time there's an update I first go into the app_settings file and delete the keys file and then copy my own keys file into app_settings. It is a small annoyance, and it would be nice if we could do it from in world like most other games allow you to do.