Jump to content

Add action groups Custom11 to Custom20 (with ALT)


Recommended Posts

Title pretty much says it all.  We've got all those number keys sitting up at the top of the keyboard, we've got the ALT key sitting right there unused.  Add ten new action groups, with the default key binding of ALT+number.  Thus, Custom11's default key binding is ALT+1.

Personally, I'd find this handy for lots of cases where I have two things I want to do, which are somewhat closely related... pairing them up so that one of them can be "3" and the other is "ALT+3" would be really handy, and save me from using up two of the precious number keys.

Technobabble that's uninteresting to anyone who's not a programmer or modder, relegated to spoiler section.

Spoiler

Not only would this be really handy from a player perspective, but I think this would be easy to do from a programmatic standpoint without breaking things, too.  Internally, KSP models action groups as a flags enum.  In some ways that's handy, but it does kinda box them in as far as adding new action groups is concerned-- you have to have one bit per enum value, and there are only so many bits to go 'round.

They've used up 16 bits of the flags for the existing action groups.  Adding Custom11 through Custom20 would be another ten bits, which they've got room for... and there would still be another few bits left for future expansion if-and-when they're so inclined.

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...