Hotkeys
Hi!
We have been playing EE for quite a while now and I remember that Artemis had some support for Hotkeys (like wasd for helms). Is there any config file in EE where I can add this?
Thanks
Julian
We have been playing EE for quite a while now and I remember that Artemis had some support for Hotkeys (like wasd for helms). Is there any config file in EE where I can add this?
Thanks
Julian
Comments
Here's my work in progress HotKey equivalent for Artemis
https://gist.github.com/kwadroke/4d7890b50058a84014ca
It might be a little bit out of date. I haven't check it in a while.
I need to update it as I'm going to use it for an event next month.
Just realized (or I can't find) that there isn't a way to steer the ship (turn left & right)
I haven't dug into hotkeys enough lately to tell if all the features are there. It could be that the code for hotkeys needs a little love.
What I did, I made every button have a possible hotkey. Which sort of works, but does not give access to every single function in the game. It also pollutes the options.ini file like crazy...
I'd like to be able to do anything you can do with the screen buttons.
Input is what's currently holding up the build. If I had touch screens, then this wouldn't be an issue.
Having Hotkeys would be a nice improvement, especially for switching the shields on and off, or steering the ship,...
On the same note, in Artemis, there are "presetings" that are use by engineering to prepare the ship for specific situation. Like in combat : max power for the shield, weapon and maenuvering and no power for reactor,...
It would be nice to have something like that linked to specific keys/button in the game.
I'll have a few looks at how I can improve the whole hotkey mess.
If I had a reliable source for good used touchscreen's, I'd go that route.
Anyhow, writing down what we need key bindings for. Initial list for helms:
Hotkeys for helms: * Increase impulse * Decrease impulse * Zero impulse * Max impulse * Max reverse impulse * Turn left * Turn right * Warp 0 * Warp 1 * Warp 2 * Warp 3 * Warp 4 * Dock request/abort/undock * Dock request * Dock abort * Undock * Jump distance increase * Jump distance decrease * Initiate jump * Combat maneuver left * Combat maneuver right * Combat maneuver boost
Won't work for Relay with a keyboard:
Placing/Deleting Waypoint
Launching Probes
Thoughts?
... I also need to get a better understanding (or confirm my understanding) of the line in HotKeyConfigItem class which reads:
HotkeyConfigItem(string key, std:tuple);
The first string is the description, the second is the default binding.
https://github.com/daid/SeriousProton2/blob/master/include/sp2/io/keybinding.h
https://github.com/daid/SeriousProton2/blob/master/src/io/keybinding.cpp
And allows for analog as well as digital logic.
But I'm not sure if I will ever port EE over to SP2, as there are a lot of differences in... everything. But we could backport some of the keybinding stuff.
The current hotkey system was an afterthought, which already had a whole bunch of patches on it. And as I'm only playing on touchscreens, it doesn't get the love it deserves from me.
Whenever you feel like you want me to look at something, just ask, and I will have a look.
Now, I think about all the available command into each screen, and some hotkeys for custom button created by the GM (the best could be :
addCustomButton(ECrewPosition position, string name, string caption, ScriptSimpleCallback callback,string hotkey)
I will do some exhaustive list this week.