quasilyte / ebitengine-input

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

Is*JustReleased function for Actions? #25

Closed harbdog closed 6 months ago

harbdog commented 1 year ago

It would be great to be able to have an ActionIsJustReleased function, just like ebitengine's inpututil package which provides IsKeyJustReleased, IsMouseButtonJustReleased, and IsGamepadButtonJustReleased.

quasilyte commented 1 year ago

There have been a couple of times I needed this as well. I think this is a reasonable feature to have.

quasilyte commented 8 months ago

OK, I bumped into a situation where I need it. I'll try to implement it.

quasilyte commented 8 months ago

As an off-topic, can we add https://github.com/harbdog/pixelmek-3d to the list of library users? :) It's in the readme.

harbdog commented 8 months ago

I may be moving the project under a general area soon, trying to get it ready for a playable alpha first though.

quasilyte commented 8 months ago

I rolled out the initial implementation. Please let me know if it fits your use case. If it's good enough for now, we can resolve this issue and keep the new related issues I created as follow-ups.

harbdog commented 6 months ago

Works like a charm, just replaced the janky function I was using! Thanks!

https://github.com/harbdog/pixelmek-3d/pull/30