get direction input from joystick as enum (left, right, up, down, and none)
Dependents:
snake
direction.h
- Committer:
- lucoby
- Date:
- 2012-10-11
- Revision:
- 0:d8f0c4ba09cc
File content as of revision 0:d8f0c4ba09cc:
#ifndef DIRECTION_H
#define DIRECTION_H
typedef enum {
none,
left,
right,
up,
down
} SDirection;
SDirection getDirection(SDirection direction);
#endif