X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=port.h;fp=port.h;h=b1cf4a61a038f2712ae78ba35bb595b39ff55aa7;hb=9902256814785f0b3f08d336a98c481c296ac7e5;hp=b24a6e234c07c8bdaf26c02f991ffab15dd724c0;hpb=8f77a3a3f10d94477f0c0734adfbd39e81173d6f;p=drnoksnes diff --git a/port.h b/port.h index b24a6e2..b1cf4a6 100644 --- a/port.h +++ b/port.h @@ -73,13 +73,7 @@ typedef int16_t int16; typedef int32_t int32; typedef int64_t int64; -//For Debugging Purposes: - typedef uint8_t bool8_32; -typedef uint8_t uint8_32; -typedef uint16_t uint16_32; -typedef int8_t int8_32; -typedef int16_t int16_32; //Defines for Extern C #ifdef __cplusplus @@ -149,6 +143,13 @@ void PathSplit(const char *path, char *drive, char *dir, char *fname, char *ext) const char * PathBasename(const char * path); END_EXTERN_C +// Input / output functions +START_EXTERN_C +uint32 S9xReadJoypad(int which1_0_to_4); +bool8 S9xReadMousePosition(int which1_0_to_1, int *x, int *y, uint32 *buttons); +bool8 S9xReadSuperScopePosition(int *x, int *y, uint32 *buttons); +END_EXTERN_C + // Stream functions, used when opening ROMs and snapshots. #ifdef ZLIB #include