Grid Sage Forums

Grid Sage Forums

  • November 25, 2024, 03:47:32 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Pages: 1 [2]

Author Topic: Experimental Keyboard Layouts and Command Rebinding  (Read 24098 times)

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4479
    • View Profile
    • Cogmind
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #25 on: February 06, 2019, 05:09:16 PM »

Excellent, thanks for the correction! Interesting it wasn't brought up before since I'm pretty sure we have at least one other Colemak user, but I guess that key's not really used much, if ever, depending on how someone plays. I'll include the updated file with the next release.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Gokudera ElPsyCongroo

  • Unaware
  • *
  • Posts: 9
    • View Profile
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #26 on: June 09, 2023, 07:00:59 PM »

For AZERTY keyboard.cfg doesn't work correctly, so made a small Autohotkey script that enables complete support. Keys on screen will correspond to the AZERTY keyboard key.

How to use:
- Download and install Autohotkey 2.0+
- Download the attached script, cogmind_rebind_azerty.ahk
- Move it to your Start Menu programs folder if you want the script to always be active when you start your PC (script only rebinds keys when you use Cogmind so it's safe to have it active at all times).
Folder location: C:\Users\< your username >\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
- Double click to start it
- If you've edited keyboard.cfg and/or command.cfg delete both.
- Enjoy Cogmind in AZERTY :)

Notes:
- Kept 0-9 as default (no need to hold SHIFT)
- Use SHIFT + ALT to access supported 0-9 special characters (e.g. all 0-9 special characters except things like éè~` etc).
- ALT Gr keys work.
- [] can be accessed both with ALT Gr and the original ^$ keys, so that you can scroll your inventory without having to hold ALT Gr. Edit the marked line in the file if you want to use the dollar sign (unneeded afaik).
« Last Edit: June 09, 2023, 08:36:04 PM by Gokudera ElPsyCongroo »
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4479
    • View Profile
    • Cogmind
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #27 on: June 11, 2023, 05:56:24 PM »

Thanks for adding this, Gokudera!
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Gokudera ElPsyCongroo

  • Unaware
  • *
  • Posts: 9
    • View Profile
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #28 on: June 12, 2023, 12:39:45 PM »

My pleasure! Here's hoping most AZERTY players will find this thread
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4479
    • View Profile
    • Cogmind
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #29 on: June 15, 2023, 06:47:38 PM »

I imagine they will since it's the main thread pointed to for info on this topic, although to be honest seeing as you have significant added value here, I think it would also make sense to also put your AZERTY info/files out there as a separate thread of its own, too.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

nubbarus

  • Unaware
  • *
  • Posts: 1
    • View Profile
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #30 on: March 01, 2024, 02:59:17 PM »

I've made some bindings for Colemak users who want to keep the same finger positions as QWERTY during vi-like navigation.
This way, we can use homerow keys HNEI as well as JLBK for all vi-like movements (which correspond to QWERTY's HJKL YUBN).
I made this by first using a default keyboard.cfg to swap keys in the following manner:

Colemak -> Default Command

E -> K
K -> N
N -> J
J -> Y
Y -> E

I -> L
L -> U
U -> I


Now your can move around by using
J L
H N E I
B K


This means that 2 default commands were actually affected:
  • Cycling between energy/heat info, now bound to y (think of "energY") (previously bound to e)
  • Open/closing the inventory panel, now bound to u (coincidentally in the same position as QWERTY's i key, to which it was previously bound)

All other commands work as expected (as default bindings)

To install, just delete keyboard.cfg and then drop this commands.cfg file into your user/ directory

Hope this helps, it sure made the cogmind experience a lot better for me!
« Last Edit: March 01, 2024, 03:08:02 PM by nubbarus »
Logged

matthewgdv

  • Unaware
  • *
  • Posts: 1
    • View Profile
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #31 on: April 06, 2024, 04:48:20 AM »

Hi, I recently started playing Cogmind (thanks DoshDoshington!) and I'm loving it so far, but the only thing that I'm really finding as a major pain point is the limitations of the key rebinding system.

I'd love to play using a WASD + mouse scheme, and while Shadowfury333's AutoHotKey script + commands.cfg file gets very close, there are still a few issues (for me):

1) The game doesn't change to reflect the hotkey changes. This isn't a problem for the information in the in-game manual, but it's very unintuitive and confusing for hotkeys displayed in the UI (such as the scan hotkeys, the inventory mode hotkeys, sort hotkey, etc.), especially if you take a break from the game and come back to it a few weeks or months later and can't remember how you had set it up. I appreciate that some keys have long names (SPACEBAR) and there might not be enough space in their UI location for them, such as the scan hotkeys, but in those situations maybe just removing the hotkey reminder from the UI would be better (and you could maybe even show the hotkey as a tooltip on hover?)

2) The mouse isn't rebindable. When using a WASD-based control scheme I'd find it more intuitive to switch the functionality of the right mouse button to the left one (left clicking on things to 'select' them is more in line with most other top-down games, such as RTS games), including for moving and setting the camera, and change the right mouse button to no longer issue movement commands, but instead enter fire mode, and then when in fire mode for RMB to shoot, while LMB cancels instead (the opposite of currently). Basically, I'd just really want the LMB and RMB functionality to also be exposed in the commands.cfg file. I'm assuming currently you've special-cased certain actions like holding RMB to set the camera to a location, but maybe that could be solved more generally by adding it as an additional modifier called Hold in the commands.cfg, alongside Ctrl, Shift, and Alt?

3) Movement key combinations for diagonals (e.g. w+d). This is great because it frees up 4 keys near where your left hand will be 99% of the time for commonly needed actions other than movement. This point actually is handled by Shadowfury333's script, but I'd love to see it included in the base game so that users don't have to install third-party programs to make this work. It's actually at this point the only thing you need the AHK script to do that you can't just do baseline. Shadowfury333's script even allows you to customize whether you want a delay for WASD input during which the script waits for a second input, or whether to simply not move on keypress, but rather on key release, which helps to prevent accidental cardinal movements when a diagonal movement was intended.

Finally, I'd just like to say that I'd be super super grateful if you could put in-game key rebinding on the roadmap. It would be so much nicer than having to mess around with advanced user options and text files. I appreciate you mentioned this would be a ton of work, but I figured I'd at least register my interest with you, if that matters.

Cheers and take care. The game you've already got is nothing short of a miracle for a 1-man project. Truly amazing :)
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4479
    • View Profile
    • Cogmind
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #32 on: April 06, 2024, 06:21:52 AM »

Hi matthewgdv! Thanks for the input. These points are known and noted, though an update to the system is not currently planned. Although there are theoretically technical solutions for everything, they involve a massive amount of work, and even if the system were to be updated, an external solution will always be superior to whatever would be implemented in Cogmind (due to limitations). Even the experimental solution we have now took like two full weeks to implement within the constraints of what I'm using, and it barely scratches the surface of what is needed and/or should exist in an ideal world xD

(More specifically to one of your points, the mouse commands don't always match up one-for-one in Cogmind, so exposing them in the configuration would not work.)
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4479
    • View Profile
    • Cogmind
Re: Experimental Keyboard Layouts and Command Rebinding
« Reply #33 on: September 26, 2024, 07:12:37 PM »

Coming to Beta 15: Rebinding for the running modifier key (currently 'r' by default) will be possible via a new advanced.cfg option, runCommandModKey, making it possible to reassign that more freely alongside other custom command rebinding.

(Also coming to Beta 15, though not unique to rebinding in particular: The running modifier key also enables vi/arrows to jump the examine cursor, a feature that thos two movement schemes can't normally take advantage of since Shift isn't available like it is with the numpad.)
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon
Pages: 1 [2]