src/core/android/SDL_android.h
changeset 7018 9cef1005df5f
parent 6885 700f1b25f77f
child 7039 f69b305b053d
     1.1 --- a/src/core/android/SDL_android.h	Tue Mar 19 22:25:02 2013 -0700
     1.2 +++ b/src/core/android/SDL_android.h	Tue Mar 19 23:03:57 2013 -0700
     1.3 @@ -33,7 +33,9 @@
     1.4  extern SDL_bool Android_JNI_CreateContext(int majorVersion, int minorVersion, int red, int green, int blue, int alpha, int buffer, int depth, int stencil, int buffers, int samples);
     1.5  extern void Android_JNI_SwapWindow();
     1.6  extern void Android_JNI_SetActivityTitle(const char *title);
     1.7 +#ifdef ENABLE_ACCELOMETER_AS_EMULATED_JOYSTICK
     1.8  extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
     1.9 +#endif
    1.10  extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
    1.11  extern void Android_JNI_HideTextInput();
    1.12  
    1.13 @@ -60,6 +62,16 @@
    1.14  /* Power support */
    1.15  int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent);
    1.16  
    1.17 +/* Joystick/accelerometer support */
    1.18 +int Android_JNI_JoystickInit();
    1.19 +int Android_JNI_JoystickQuit();
    1.20 +int Android_JNI_GetNumJoysticks();
    1.21 +char* Android_JNI_GetJoystickName(int i);
    1.22 +int Android_JNI_GetJoystickNumOfAxes(int index);
    1.23 +#ifdef ENABLE_ACCELOMETER_AS_EMULATED_JOYSTICK
    1.24 +char* Android_GetAccelName();
    1.25 +#endif
    1.26 +
    1.27  // Threads
    1.28  #include <jni.h>
    1.29  static void Android_JNI_ThreadDestroyed(void*);