2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Camera and input fixes

This commit is contained in:
Jack Andersen
2017-12-15 14:19:15 -10:00
parent ce6a3aa50c
commit ce2ed8cec6
6 changed files with 94 additions and 76 deletions

View File

@@ -55,6 +55,12 @@ public:
m_leftDiv(leftDiv),
m_rightDiv(rightDiv) {}
~CInputGenerator()
{
if (smashAdapter)
smashAdapter->setCallback(nullptr);
}
/* Keyboard and mouse events are delivered on the main game
* thread as part of the app's main event loop. The OS is responsible
* for buffering events in its own way, then boo flushes the buffer