The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoKeys.c File Reference

#include "SoKeys.h"

Defines

#define SO_REG_KEY
 GBA keypress register.


Functions

void SoKeysUpdate (void)
 Updates the key status.

u16 SoKeysGetState (void)
 Returns the current key status bitmap.

bool SoKeysDown (u16 a_Keys)
 Returns true if the given keys are down at the moment;.

bool SoKeysPressed (u16 a_Keys)
 Tests the given keys have been pressed in between the last two calls to SoKeysUpdate.

bool SoKeysReleased (u16 a_Keys)
 Tests the given keys have been released in between the last two calls to SoKeysUpdate.

bool SoKeysPressedRepeat (u16 a_Keys)
 Not yet supported.

void SoKeysSetRepeatDelay (u16 a_nDelay)
 Not yet supported.

void SoKeysSetRepeatSpeed (u16 a_nSpeed)
 Not yet supported.


Variables

u16 s_KeysDown
 Contains which keys are down at the moment.

u16 s_KeysPressed
 Contains which keys have been pressed.

u16 s_KeysReleased
 Contains which keys have been released.

u16 s_nRepeat
 Key repeat count.

u16 s_nRepeatDelay
 Key repeat delay.

u16 s_nRepeatSpeed
 Key repeat speed.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter, Erik Rounds
Date:
Jan 21, 2003
See the SoKeys module for more information.


Define Documentation

#define SO_REG_KEY
 

GBA keypress register.

For internal use only.


Variable Documentation

u16 s_KeysDown [static]
 

Contains which keys are down at the moment.

For internal use only.

u16 s_KeysPressed [static]
 

Contains which keys have been pressed.

For internal use only.

u16 s_KeysReleased [static]
 

Contains which keys have been released.

For internal use only.

u16 s_nRepeat [static]
 

Key repeat count.

For internal use only.

u16 s_nRepeatDelay [static]
 

Key repeat delay.

For internal use only.

u16 s_nRepeatSpeed [static]
 

Key repeat speed.

For internal use only.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.