aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/staticres.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-02-15 03:36:30 +0000
committerFlorian Kagerer2009-02-15 03:36:30 +0000
commit16a57f299cdad82a87c1d397b56b663a9426c38e (patch)
tree21fcc6ac31586e322840be55c4dc052654c0b385 /engines/kyra/staticres.cpp
parent36767120e1d3553217809af262d844474f926c03 (diff)
downloadscummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.gz
scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.bz2
scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.zip
LOL: - implemented proper button processing (works exactly as in Kyra 2 and 3, so we do have some code duplication atm, I just fixed right mouse button support for LOL)
- keyboard control now works svn-id: r38190
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r--engines/kyra/staticres.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp
index 988cfd4584..7bd556cebf 100644
--- a/engines/kyra/staticres.cpp
+++ b/engines/kyra/staticres.cpp
@@ -44,7 +44,7 @@
namespace Kyra {
-#define RESFILE_VERSION 36
+#define RESFILE_VERSION 37
namespace {
bool checkKyraDat(Common::SeekableReadStream *file) {
@@ -1078,9 +1078,8 @@ bool StaticResource::loadButtonDefs(const char *filename, void *&ptr, int &size)
for (int i = 0; i < size; i++) {
r[i].buttonflags = file->readUint16BE();
- r[i].clickedShapeId = file->readByte();
- file->readByte();
- r[i].unk2 = file->readUint16BE();
+ r[i].keyCode = file->readUint16BE();
+ r[i].keyCode2 = file->readUint16BE();
r[i].x = file->readSint16BE();
r[i].y = file->readSint16BE();
r[i].w = file->readUint16BE();