mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 15:31:59 +00:00
Not available in ARM mode for now
svn-id: r20647
This commit is contained in:
parent
d3b902ac25
commit
d6be9bcada
@ -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
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user