mouse events

This commit is contained in:
Ben
2021-08-19 17:42:28 +01:00
parent bf89265947
commit a4cfaf6f23
7 changed files with 212 additions and 70 deletions

View File

@@ -13,6 +13,7 @@ App::App( const DisplayProperties& props )
, mInput()
{
RegisterAsSink( "ENGINE_DISPLAY_CORE", 0 );
RegisterAsSink( "ENGINE_INPUT_MOUSE", 0 );
mDisplay.Create( props );
@@ -33,7 +34,10 @@ const Display& App::GetDisplay()
bool App::EventRecieved( GenericEvent& e )
{
std::cout << e.Type << std::endl;
if ( e.Type == "DISPLAY_CLOSED" )
{
mSIGTERM = true;
}
return false;
}