00001 /*--------------------------------------------------------------------------------- 00002 $Id: rumble.h,v 1.4 2007-02-07 16:38:11 wntrmute Exp $ 00003 00004 Copyright (C) 2005 00005 Michael Noland (joat) 00006 Jason Rogers (dovoto) 00007 Dave Murphy (WinterMute) 00008 Mike Parks (BigRedPimp) 00009 This software is provided 'as-is', without any express or implied 00010 warranty. In no event will the authors be held liable for any 00011 damages arising from the use of this software. 00012 Permission is granted to anyone to use this software for any 00013 purpose, including commercial applications, and to alter it and 00014 redistribute it freely, subject to the following restrictions: 00015 00016 1. The origin of this software must not be misrepresented; you 00017 must not claim that you wrote the original software. If you use 00018 this software in a product, an acknowledgment in the product 00019 documentation would be appreciated but is not required. 00020 2. Altered source versions must be plainly marked as such, and 00021 must not be misrepresented as being the original software. 00022 3. This notice may not be removed or altered from any source 00023 distribution. 00024 $Log: not supported by cvs2svn $ 00025 Revision 1.3 2005/11/27 07:47:07 joatski 00026 Fixed multiple linebreaks. 00027 Moved cart bus control functions and GBA header to memory.h 00028 00029 Revision 1.2 2005/11/02 07:06:20 bigredpimp 00030 Added revision comment block 00031 00032 ---------------------------------------------------------------------------------*/ 00036 #ifndef RUMBLE_HEADER_INCLUDE 00037 #define RUMBLE_HEADER_INCLUDE 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 #define RUMBLE_PAK (*(vuint16 *)0x08000000) 00044 #define WARIOWARE_PAK (*(vuint16 *)0x080000C4) 00045 #define WARIOWARE_ENABLE (*(vuint16 *)0x080000C6) 00046 00047 typedef enum { 00048 RUMBLE, 00049 WARIOWARE 00050 }RUMBLE_TYPE; 00051 00056 bool isRumbleInserted(void); 00057 00062 void setRumble(bool position); 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif