aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2006-02-12 19:25:13 +0000
committerChris Apers2006-02-12 19:25:13 +0000
commitd6be9bcadaa37db65201fa4c2c18b8c74889aa30 (patch)
treec995b123fb357b621ecabfd4c784fffd0aba3a0e
parentd3b902ac25d39550e210cb043e120ebbbebabeed (diff)
downloadscummvm-rg350-d6be9bcadaa37db65201fa4c2c18b8c74889aa30.tar.gz
scummvm-rg350-d6be9bcadaa37db65201fa4c2c18b8c74889aa30.tar.bz2
scummvm-rg350-d6be9bcadaa37db65201fa4c2c18b8c74889aa30.zip
Not available in ARM mode for now
svn-id: r20647
-rw-r--r--backends/PalmOS/Src/rumble.cpp37
-rw-r--r--backends/PalmOS/Src/rumble.h26
2 files changed, 60 insertions, 3 deletions
diff --git a/backends/PalmOS/Src/rumble.cpp b/backends/PalmOS/Src/rumble.cpp
index d70a1d315b..e868f25a04 100644
--- a/backends/PalmOS/Src/rumble.cpp
+++ b/backends/PalmOS/Src/rumble.cpp
@@ -1,3 +1,27 @@
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2001 Ludvig Strigeus
+ * Copyright (C) 2001-2006 The ScummVM project
+ * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
#include <PalmOS.h>
#include "globals.h"
#include "vibrate.h"
@@ -24,6 +48,7 @@ Boolean RumbleExists() {
} else
#endif
{
+#ifndef PALMOS_ARM
UInt32 romVersion;
@@ -35,8 +60,10 @@ Boolean RumbleExists() {
exists = (!e) ? true : exists;
}
}
+#endif
}
+
return exists;
}
@@ -53,11 +80,14 @@ void RumbleRun(Boolean active) {
} else
#endif
{
+#ifndef PALMOS_ARM
UInt32 pattern = active ? 0xFF000000 : 0x00000000;
HwrVibrateAttributes(1, kHwrVibratePattern, &pattern);
HwrVibrateAttributes(1, kHwrVibrateActive, &active);
+#endif
}
+
}
Boolean RumbleInit() {
@@ -71,6 +101,7 @@ Boolean RumbleInit() {
} else
#endif
{
+#ifndef PALMOS_ARM
if (RumbleExists()) {
UInt16 cycle = (SysTicksPerSecond())/2;
UInt32 pattern = 0xFF000000;
@@ -84,8 +115,8 @@ Boolean RumbleInit() {
done = true;
}
+#endif
}
-
return done;
}
@@ -97,10 +128,12 @@ void RumbleRelease() {
} else
#endif
{
+#ifndef PALMOS_ARM
UInt32 pattern = 0x00000000;
Boolean active = false;
HwrVibrateAttributes(1, kHwrVibratePattern, &pattern);
HwrVibrateAttributes(1, kHwrVibrateActive, &active);
+#endif
}
-}
+} \ No newline at end of file
diff --git a/backends/PalmOS/Src/rumble.h b/backends/PalmOS/Src/rumble.h
index 5bcab73793..d9e8e5b951 100644
--- a/backends/PalmOS/Src/rumble.h
+++ b/backends/PalmOS/Src/rumble.h
@@ -1,3 +1,27 @@
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2001 Ludvig Strigeus
+ * Copyright (C) 2001-2006 The ScummVM project
+ * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
#ifndef __RUMBLE_H__
#define __RUMBLE_H__
@@ -6,4 +30,4 @@ void RumbleRun (Boolean active);
Boolean RumbleInit ();
void RumbleRelease ();
-#endif
+#endif \ No newline at end of file