Move common/arch/sdl/joy.c -> common/arch/sdl/joy.cpp

This commit is contained in:
Kp 2012-11-11 22:12:51 +00:00
parent d97e7b468b
commit 9daacbdf81
7 changed files with 41 additions and 1 deletions

View file

@ -613,7 +613,7 @@ class DXXArchive(DXXCommon):
'3d/points.cpp',
'3d/rod.cpp',
'3d/setup.cpp',
'arch/sdl/joy.c',
'arch/sdl/joy.cpp',
'arch/sdl/rbaudio.c',
'arch/sdl/window.c',
'maths/fixc.c',

View file

@ -6,6 +6,10 @@
#include "pstypes.h"
#include "dxxsconf.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Priority levels */
#define CON_CRITICAL -3
#define CON_URGENT -2
@ -34,5 +38,9 @@ void con_init(void);
void con_printf(int level, const char *fmt, ...) __attribute_format_printf(2, 3);
void con_showup(void);
#ifdef __cplusplus
}
#endif
#endif /* _CONSOLE_H_ */

View file

@ -24,6 +24,10 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#include "dxxsconf.h"
#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUC__
#define __noreturn __attribute__ ((noreturn))
#else
@ -52,4 +56,8 @@ extern void Debugger(void); // Avoids some name clashes
#define Int3() ((void)0)
#endif
#ifdef __cplusplus
}
#endif
#endif /* _ERROR_H */

View file

@ -4,6 +4,10 @@
#define _EVENT_H
#include "maths.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum event_type
{
EVENT_IDLE = 0,
@ -66,4 +70,8 @@ void event_toggle_focus(int activate_focus);
void event_reset_idle_seconds();
fix event_get_idle_seconds();
#ifdef __cplusplus
}
#endif
#endif

View file

@ -11,6 +11,10 @@
#include "fix.h"
#include <SDL.h>
#ifdef __cplusplus
extern "C" {
#endif
struct d_event;
#define MAX_JOYSTICKS 8
@ -30,4 +34,8 @@ extern void joy_button_handler(SDL_JoyButtonEvent *jbe);
extern void joy_hat_handler(SDL_JoyHatEvent *jhe);
extern int joy_axis_handler(SDL_JoyAxisEvent *jae);
#ifdef __cplusplus
}
#endif
#endif // _JOY_H

View file

@ -1,6 +1,10 @@
#ifndef _STRUTILS_H
#define _STRUTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(macintosh)
extern void snprintf(char *out_string, int size, const char * format, ... );
#endif
@ -39,4 +43,8 @@ int string_array_sort_func(char **e0, char **e1);
// reallocate pointers to save memory, sort list alphabetically and remove duplicates according to 'comp'
void string_array_tidy(char ***list, char **list_buf, int *num_str, int *max_str, int *max_buf, int offset, int (*comp)( const char *, const char * ));
#ifdef __cplusplus
}
#endif
#endif /* _STRUTILS_H */