fixed a lot of issues with keyboard polling

This commit is contained in:
Benjamin Kyd
2022-05-19 22:37:21 +01:00
parent 7e635a031c
commit 19cacf248d
5 changed files with 25 additions and 25 deletions

View File

@@ -1,6 +1,3 @@
// simple raycast shooter
// shotgun fun fun yanno
#include <iostream>
#include <Aeon/Aeon.hpp>
@@ -37,6 +34,10 @@ public:
{
std::cout << "FROM LEVEL " << e.Type << " " << (char)e.keyCode << std::endl;
if ( e.keyMods & Aeon::Input::EModCode::SHIFT ) {
std::cout << "Shift" << std::endl;
}
return false;
}
@@ -49,8 +50,6 @@ public:
class ExampleGame : public Aeon::Core::App
{
public:
// take command line args better (parse them first!)
ExampleGame()
: App( { "Example" }, { "Game with AEON!" } )
{