KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1/*
2 KallistiOS 2.0.0
3
4 input.h
5 (C) 2013 Josh Pearson
6*/
7
8#ifndef INPUT_H
9#define INPUT_H
10
11#define STATE_IDLE 0x00000000
12#define STATE_JOG 0x0000000F
13#define STATE_RUN 0x000000F0
14#define STATE_RTURN 0x00000F00
15#define STATE_LTURN 0x0000F000
16#define STATE_JUMP 0x000F0000
17#define STATE_FALL 0x00F00000
18#define STATE_ATTACK 0x0F000000
19#define STATE_HURT 0xF0000000
20
21#define RANGLE 15.0f // Rotation Angle
22#define RSD 360.0f/RANGLE // Rotated Side
23static const float ANGLE = 10.0f;
24#define ROTATION RADIAN*ANGLE
25static const float RSHIFT = RADIAN * 90.0f;
26static const float FRSHIFT = RADIAN * 270.0f;
27
28void InputCallback(vector3f campos, vector3f camdst);
29
30#endif
#define RADIAN
Definition vector.h:18
float vector3f[3]
Definition vector.h:13
static const float FRSHIFT
Definition input.h:26
static const float ANGLE
Definition input.h:23
static const float RSHIFT
Definition input.h:25
int InputCallback(void)
Definition gltest.c:75