src/core/android/SDL_android.h
changeset 7245 03d2c8cb205d
parent 7039 f69b305b053d
child 7246 be3beed886ea
equal deleted inserted replaced
7244:58ce56d2cfda 7245:03d2c8cb205d
    35 extern void Android_JNI_SetActivityTitle(const char *title);
    35 extern void Android_JNI_SetActivityTitle(const char *title);
    36 extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
    36 extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
    37 extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
    37 extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
    38 extern void Android_JNI_HideTextInput();
    38 extern void Android_JNI_HideTextInput();
    39 
    39 
    40 // Audio support
    40 /* Audio support */
    41 extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    41 extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    42 extern void* Android_JNI_GetAudioBuffer();
    42 extern void* Android_JNI_GetAudioBuffer();
    43 extern void Android_JNI_WriteAudioBuffer();
    43 extern void Android_JNI_WriteAudioBuffer();
    44 extern void Android_JNI_CloseAudioDevice();
    44 extern void Android_JNI_CloseAudioDevice();
    45 
    45 
    58 SDL_bool Android_JNI_HasClipboardText();
    58 SDL_bool Android_JNI_HasClipboardText();
    59 
    59 
    60 /* Power support */
    60 /* Power support */
    61 int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent);
    61 int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent);
    62 
    62 
    63 // Threads
    63 /* Threads */
    64 #include <jni.h>
    64 #include <jni.h>
    65 static void Android_JNI_ThreadDestroyed(void*);
    65 static void Android_JNI_ThreadDestroyed(void*);
    66 JNIEnv *Android_JNI_GetEnv(void);
    66 JNIEnv *Android_JNI_GetEnv(void);
    67 int Android_JNI_SetupThread(void);
    67 int Android_JNI_SetupThread(void);
    68 
    68 
    69 // Generic messages
    69 /* Generic messages */
    70 int Android_JNI_SendMessage(int command, int param);
    70 int Android_JNI_SendMessage(int command, int param);
    71 
    71 
    72 /* Ends C function definitions when using C++ */
    72 /* Ends C function definitions when using C++ */
    73 #ifdef __cplusplus
    73 #ifdef __cplusplus
    74 /* *INDENT-OFF* */
    74 /* *INDENT-OFF* */