KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
input.h File Reference

Go to the source code of this file.

Macros

#define STATE_IDLE   0x00000000
 
#define STATE_JOG   0x0000000F
 
#define STATE_RUN   0x000000F0
 
#define STATE_RTURN   0x00000F00
 
#define STATE_LTURN   0x0000F000
 
#define STATE_JUMP   0x000F0000
 
#define STATE_FALL   0x00F00000
 
#define STATE_ATTACK   0x0F000000
 
#define STATE_HURT   0xF0000000
 
#define RANGLE   15.0f
 
#define RSD   360.0f/RANGLE
 
#define ROTATION   RADIAN*ANGLE
 

Functions

void InputCallback (vector3f campos, vector3f camdst)
 

Variables

static const float ANGLE = 10.0f
 
static const float RSHIFT = RADIAN * 90.0f
 
static const float FRSHIFT = RADIAN * 270.0f
 

Macro Definition Documentation

◆ RANGLE

#define RANGLE   15.0f

◆ ROTATION

#define ROTATION   RADIAN*ANGLE

◆ RSD

#define RSD   360.0f/RANGLE

◆ STATE_ATTACK

#define STATE_ATTACK   0x0F000000

◆ STATE_FALL

#define STATE_FALL   0x00F00000

◆ STATE_HURT

#define STATE_HURT   0xF0000000

◆ STATE_IDLE

#define STATE_IDLE   0x00000000

◆ STATE_JOG

#define STATE_JOG   0x0000000F

◆ STATE_JUMP

#define STATE_JUMP   0x000F0000

◆ STATE_LTURN

#define STATE_LTURN   0x0000F000

◆ STATE_RTURN

#define STATE_RTURN   0x00000F00

◆ STATE_RUN

#define STATE_RUN   0x000000F0

Function Documentation

◆ InputCallback()

Variable Documentation

◆ ANGLE

const float ANGLE = 10.0f
static

◆ FRSHIFT

const float FRSHIFT = RADIAN * 270.0f
static

Referenced by InputCallback().

◆ RSHIFT

const float RSHIFT = RADIAN * 90.0f
static

Referenced by InputCallback().