From 2c5e8cc93861cded0b9a8ca7c605c61c7c2acc31 Mon Sep 17 00:00:00 2001 From: Neil Millstone Date: Thu, 15 May 2008 22:12:51 +0000 Subject: Porting changes from 0.11.0 branch svn-id: r32140 --- backends/platform/ds/arm9/source/dsmain.h | 104 +++++++++++++++--------------- 1 file changed, 53 insertions(+), 51 deletions(-) (limited to 'backends/platform/ds/arm9/source/dsmain.h') diff --git a/backends/platform/ds/arm9/source/dsmain.h b/backends/platform/ds/arm9/source/dsmain.h index 85212a2d01..f20442b11e 100644 --- a/backends/platform/ds/arm9/source/dsmain.h +++ b/backends/platform/ds/arm9/source/dsmain.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ - + #ifndef _DSMAIN_H #define _DSMAIN_H @@ -42,98 +42,100 @@ enum controlType { }; struct gameListType { - char gameId[16]; - controlType control; + char gameId[16]; + controlType control; }; // Pen reading functions -void penInit(); -void penUpdate(); -bool getPenDown(); -bool getPenHeld(); -bool getPenReleased(); -int getPenX(); -int getPenY(); +void penInit(); +void penUpdate(); +bool getPenDown(); +bool getPenHeld(); +bool getPenReleased(); +int getPenX(); +int getPenY(); GLvector getPenPos(); -void consumePenEvents(); +void consumePenEvents(); // Pad reading -int getKeysHeld(); -void keysUpdate(); -int getKeysDown(); -int getKeysReleased(); -void consumeKeys(); -int leftHandedSwap(int keys); +int getKeysHeld(); +void keysUpdate(); +int getKeysDown(); +int getKeysReleased(); +void consumeKeys(); +int leftHandedSwap(int keys); // Video -void displayMode8Bit(); // Switch to 8-bit mode5 -void displayMode16Bit(); // Switch to 16-bit mode5 +void displayMode8Bit(); // Switch to 8-bit mode5 +void displayMode16Bit(); // Switch to 16-bit mode5 // Flip double buffer -void displayMode16BitFlipBuffer(); +void displayMode16BitFlipBuffer(); // Get address of current back buffer -u16* get16BitBackBuffer(); -u16* get8BitBackBuffer(); +u16* get16BitBackBuffer(); +u16* get8BitBackBuffer(); +s32 get8BitBackBufferStride(); +u16* getScalerBuffer(); -void setTalkPos(int x, int y); -void setTopScreenTarget(int x, int y); +void setTalkPos(int x, int y); +void setTopScreenTarget(int x, int y); void set200PercentFixedScale(bool on); // Timers -void setTimerCallback(OSystem_DS::TimerProc proc, int interval); // Setup a callback function at a regular interval -int getMillis(); // Return the current runtime in milliseconds -void doTimerCallback(); // Call callback function if required +void setTimerCallback(OSystem_DS::TimerProc proc, int interval); // Setup a callback function at a regular interval +int getMillis(); // Return the current runtime in milliseconds +void doTimerCallback(); // Call callback function if required // Sound -void setSoundProc(OSystem_DS::SoundProc proc, void* param); // Setup a callback function for sound -void doSoundCallback(); // Call function if sound buffers need more data -void playSound(const void* data, u32 length, bool loop, bool adpcm = false, int rate = 22050); // Start a sound -void stopSound(int channel); +void setSoundProc(OSystem_DS::SoundProc proc, void* param); // Setup a callback function for sound +void doSoundCallback(); // Call function if sound buffers need more data +void playSound(const void* data, u32 length, bool loop, bool adpcm = false, int rate = 22050); // Start a sound +void stopSound(int channel); int getSoundFrequency(); // Event queue -void addEventsToQueue(); -void VBlankHandler(); +void addEventsToQueue(); +void VBlankHandler(); // Sam and Max Stuff -void setGameID(int id); -void setCursorIcon(const u8* icon, uint w, uint h, byte keycolor, int hotspotX, int hotspotY); +void setGameID(int id); +void setCursorIcon(const u8* icon, uint w, uint h, byte keycolor, int hotspotX, int hotspotY); void setShowCursor(bool enable); void setMouseCursorVisible(bool visible); // Shake -void setShakePos(int shakePos); +void setShakePos(int shakePos); // Reports -void memoryReport(); +void memoryReport(); // GBAMP -bool isGBAMPAvailable(); +bool isGBAMPAvailable(); // Sleep (I'd like some of that right now) -void checkSleepMode(); +void checkSleepMode(); // Virtual keyboard -void setKeyboardIcon(bool enable); -bool getKeyboardIcon(); -void setKeyboardEnable(bool en); -bool getKeyboardEnable(); +void setKeyboardIcon(bool enable); +bool getKeyboardIcon(); +void setKeyboardEnable(bool en); +bool getKeyboardEnable(); // Options -void setLeftHanded(bool enable); -void setTouchXOffset(int x); -void setTouchYOffset(int y); -void setUnscaledMode(bool enable); +void setLeftHanded(bool enable); +void setTouchXOffset(int x); +void setTouchYOffset(int y); +void setUnscaledMode(bool enable); void setSnapToBorder(bool enable); -void setIndyFightState(bool st); -bool getIndyFightState(); +void setIndyFightState(bool st); +bool getIndyFightState(); bool isCpuScalerEnabled(); void setCpuScalerEnable(bool enable); // Display -bool getIsDisplayMode8Bit(); -void setGameSize(int width, int height); +bool getIsDisplayMode8Bit(); +void setGameSize(int width, int height); int getGameWidth(); int getGameHeight(); -- cgit v1.2.3