From d6be9bcadaa37db65201fa4c2c18b8c74889aa30 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sun, 12 Feb 2006 19:25:13 +0000 Subject: Not available in ARM mode for now svn-id: r20647 --- backends/PalmOS/Src/rumble.cpp | 37 +++++++++++++++++++++++++++++++++++-- backends/PalmOS/Src/rumble.h | 26 +++++++++++++++++++++++++- 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 #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 -- cgit v1.2.3