mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 09:26:26 +00:00
TESTBED: Enable mouse event handling for QuickTime interactivity
This commit is contained in:
parent
e4624cf95b
commit
01c2def795
@ -134,6 +134,20 @@ Common::Error Videotests::videoTest(Common::SeekableReadStream *stream, const Co
|
||||
Common::Event event;
|
||||
|
||||
while (g_system->getEventManager()->pollEvent(event)) {
|
||||
switch (event.type) {
|
||||
case Common::EVENT_LBUTTONDOWN:
|
||||
((Video::QuickTimeDecoder *)video)->handleMouseButton(true, event.mouse.x, event.mouse.y);
|
||||
break;
|
||||
case Common::EVENT_LBUTTONUP:
|
||||
((Video::QuickTimeDecoder *)video)->handleMouseButton(false);
|
||||
break;
|
||||
case Common::EVENT_MOUSEMOVE:
|
||||
((Video::QuickTimeDecoder *)video)->handleMouseMove(event.mouse.x, event.mouse.y);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (Engine::shouldQuit()) {
|
||||
video->close();
|
||||
delete video;
|
||||
|
Loading…
x
Reference in New Issue
Block a user