[Scummvm-cvs-logs] SF.net SVN: scummvm: [20647] scummvm/trunk/backends/PalmOS/Src

chrilith at users.sourceforge.net chrilith at users.sourceforge.net
Sun Feb 12 11:26:05 CET 2006


Revision: 20647
Author:   chrilith
Date:     2006-02-12 11:25:13 -0800 (Sun, 12 Feb 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=20647&view=rev

Log Message:
-----------
Not available in ARM mode for now

Modified Paths:
--------------
    scummvm/trunk/backends/PalmOS/Src/rumble.cpp
    scummvm/trunk/backends/PalmOS/Src/rumble.h
Modified: scummvm/trunk/backends/PalmOS/Src/rumble.cpp
===================================================================
--- scummvm/trunk/backends/PalmOS/Src/rumble.cpp	2006-02-12 19:21:52 UTC (rev 20646)
+++ scummvm/trunk/backends/PalmOS/Src/rumble.cpp	2006-02-12 19:25:13 UTC (rev 20647)
@@ -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 @@
 	} else
 #endif
 	{
+#ifndef PALMOS_ARM
 
 		UInt32 romVersion;
 
@@ -35,8 +60,10 @@
 				exists = (!e) ? true : exists;
 			}
 		}
+#endif
 	}
 
+
 	return exists;
 }
 
@@ -53,11 +80,14 @@
 	} 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 @@
 	} else
 #endif
 	{
+#ifndef PALMOS_ARM
 		if (RumbleExists()) {
 			UInt16 cycle	= (SysTicksPerSecond())/2;
 			UInt32 pattern	= 0xFF000000;
@@ -84,8 +115,8 @@
 
 			done = true;
 		}
+#endif
 	}
-
 	return done;
 }
 
@@ -97,10 +128,12 @@
 	} 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

Modified: scummvm/trunk/backends/PalmOS/Src/rumble.h
===================================================================
--- scummvm/trunk/backends/PalmOS/Src/rumble.h	2006-02-12 19:21:52 UTC (rev 20646)
+++ scummvm/trunk/backends/PalmOS/Src/rumble.h	2006-02-12 19:25:13 UTC (rev 20647)
@@ -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 @@
 Boolean	RumbleInit		();
 void	RumbleRelease	();
 
-#endif
+#endif
\ No newline at end of file







More information about the Scummvm-git-logs mailing list