~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/unix/gp2x/minimal.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 
3
2
  GP2X minimal library v0.A by rlyeh, (c) 2005. emulnation.info@rlyeh (swap it!)
4
3
 
5
4
  Thanks to Squidge, Robster, snaff, Reesy and NK, for the help & previous work! :-)
26
25
#include <sys/soundcard.h>
27
26
#include <sys/time.h>
28
27
#include <unistd.h>
 
28
#include <linux/keyboard.h>
 
29
#include <linux/kd.h>
 
30
#include <linux/joystick.h>
 
31
#include <termios.h>
 
32
#include <keycodes.h>
29
33
 
30
34
#ifndef __MINIMAL_H__
31
35
#define __MINIMAL_H__
84
88
extern void             gp2x_video_flip(void);
85
89
extern void             gp2x_video_setpalette(void);
86
90
 
87
 
extern unsigned long    gp2x_joystick_read(void);
88
 
 
 
91
extern unsigned long    gp2x_joystick_read(int joystick);
 
92
extern unsigned long    gp2x_usbjoys;
89
93
extern void             gp2x_sound_volume(int left, int right);
90
94
 
91
95
extern unsigned long    gp2x_timer_read(void);
96
100
extern void             gp2x_dualcore_launch_program(unsigned long *area, unsigned long size);
97
101
extern void             gp2x_dualcore_launch_program_from_disk(const char *file, unsigned long offset, unsigned long size);
98
102
 
 
103
extern unsigned int     gp2x_keyboard_readext(void);
 
104
 
99
105
#define gp2x_dualcore_declare_subprogram(name) extern void gp2x_dualcore_launch_## name ##_subprogram(void);
100
106
#define gp2x_dualcore_launch_subprogram(name)  gp2x_dualcore_launch_## name ##_subprogram()
101
107
 
102
108
#endif
103