[Scummvm-git-logs] scummvm master -> 5bb31cc42544cfc40f6886d7887a2dd52d6c4a11

aquadran noreply at scummvm.org
Sun Jan 16 20:21:24 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5bb31cc425 GRIM: Implemented Lua_V1::FlushControls opcode


Commit: 5bb31cc42544cfc40f6886d7887a2dd52d6c4a11
    https://github.com/scummvm/scummvm/commit/5bb31cc42544cfc40f6886d7887a2dd52d6c4a11
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-01-16T21:21:18+01:00

Commit Message:
GRIM: Implemented Lua_V1::FlushControls opcode

Changed paths:
    engines/grim/lua_v1.cpp


diff --git a/engines/grim/lua_v1.cpp b/engines/grim/lua_v1.cpp
index dc0048cf026..8631b79251e 100644
--- a/engines/grim/lua_v1.cpp
+++ b/engines/grim/lua_v1.cpp
@@ -710,6 +710,11 @@ void Lua_V1::JustLoaded() {
 void Lua_V1::EnableDebugKeys() {
 }
 
+void Lua_V1::FlushControls() {
+	g_system->getEventManager()->purgeKeyboardEvents();
+	g_system->getEventManager()->purgeMouseEvents();
+}
+
 void Lua_V1::LightMgrSetChange() {
 	// nothing to implement
 	// lights manager for game debug purpose only
@@ -740,10 +745,6 @@ void Lua_V1::DetachFromResources() {
 	// originally this is used only for CD changing which is not supported here
 }
 
-void Lua_V1::FlushControls() {
-	warning("Stub function: FlushControls");
-}
-
 void Lua_V1::SpewStartup() {
 	warning("Stub function: SpewStartup");
 }




More information about the Scummvm-git-logs mailing list