GameDevTecnico / cubos

A still very barebones game engine focused on voxels and data-oriented programming
https://gamedevtecnico.github.io/cubos/
MIT License
83 stars 23 forks source link

feat(engine): add .justPressed and .justReleased to Input #1145

Closed diogomsmiranda closed 4 months ago

diogomsmiranda commented 4 months ago

Description

Allow detecting rising/falling edges on Input actions

Checklist

github-actions[bot] commented 4 months ago

PR Preview Action v1.4.7 :---: :rocket: Deployed preview to https://GameDevTecnico.github.io/cubos/docs-preview/pr-1145/ on branch gh-pages at 2024-04-26 11:24 UTC

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 0% with 41 lines in your changes are missing coverage. Please review.

Project coverage is 39.58%. Comparing base (4089e6e) to head (8ba53d2). Report is 25 commits behind head on main.

Files Patch % Lines
engine/src/input/input.cpp 0.00% 30 Missing :warning:
engine/src/input/action.cpp 0.00% 10 Missing :warning:
engine/src/input/plugin.cpp 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1145 +/- ## ========================================== - Coverage 40.65% 39.58% -1.08% ========================================== Files 327 346 +19 Lines 25438 26130 +692 ========================================== + Hits 10342 10343 +1 - Misses 15096 15787 +691 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.