mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
SCI: Turn _modifierStates into member of class EventManager
svn-id: r49963
This commit is contained in:
parent
06997c0da6
commit
2556ea192c
@ -36,7 +36,7 @@ namespace Sci {
|
||||
|
||||
#define SCANCODE_ROWS_NR 3
|
||||
|
||||
EventManager::EventManager(bool fontIsExtended) : _fontIsExtended(fontIsExtended) {
|
||||
EventManager::EventManager(bool fontIsExtended) : _fontIsExtended(fontIsExtended), _modifierStates(0) {
|
||||
}
|
||||
|
||||
EventManager::~EventManager() {
|
||||
@ -115,7 +115,6 @@ static const byte codepagemap_88591toDOS[0x80] = {
|
||||
};
|
||||
|
||||
SciEvent EventManager::getScummVMEvent() {
|
||||
static int _modifierStates = 0; // FIXME: Avoid non-const global vars
|
||||
SciEvent input = { SCI_EVENT_NONE, 0, 0, 0 };
|
||||
|
||||
Common::EventManager *em = g_system->getEventManager();
|
||||
|
@ -120,6 +120,7 @@ private:
|
||||
SciEvent getScummVMEvent();
|
||||
|
||||
const bool _fontIsExtended;
|
||||
int _modifierStates;
|
||||
Common::List<SciEvent> _events;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user