/* input.h
 *
 * Receives input from the user.
 *
 * (c) 2006, Joseph Curtis
 */

#include "x86.h"

#ifndef x86
#include <pspctrl.h>
#endif

/**
 * The input loop.  Sureley a better way to do it?  Callbacks people!
 * I guess this will do for this situation because it is a turn-based
 * game.
 *
 * Needs to handle may keystrokes in quick succession as one.
 */
int input_loop();

/**
 * Left trigger activated.
 */
void ctrl_ltrigger();

/**
 * Right trigger activated.
 */
void ctrl_rtrigger();

/**
 * Called when analogue stick is activated.
 */
void crtl_analogue(char x, char y);

void ctrl_left();

void ctrl_right();

void ctrl_up();

void ctrl_down();

