quasilyte / ebitengine-input

A Godot-inspired action input handling system for Ebitengine
MIT License
66 stars 8 forks source link

Add KeymapMerge function #40

Closed dkotik closed 7 months ago

dkotik commented 7 months ago

I needed to write this for one of my projects, decided to contribute it upstream. Just a small quality of life helper.

quasilyte commented 7 months ago

Hi! Thank you for checking out this library and sending your PR.

I needed to merge a couple of keymaps at least once too: https://github.com/quasilyte/roboden-game/blob/cd409d65117842225432597794582743cd31dec5/src/controls/keymap.go#L171-L176

It could be a good helper function to have. Let's handle some minor concerns and merge it.