FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
Macros | Enumerations | Functions
FSJNI_Wrapper.h File Reference
#include <jni.h>
#include <android/log.h>
Include dependency graph for FSJNI_Wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FS_LOGI(...)   ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__))
 
#define FS_LOGW(...)   ((void)__android_log_print(ANDROID_LOG_WARN, "native-activity", __VA_ARGS__))
 

Enumerations

enum  JNICallBackType { JoystickAdded = 0, JoystickRemoved =1, KeyEvent = 2, MotionEvent = 3 }
 
enum  UpdateType : int { UpdateType::addedDevice = 0, UpdateType::removedDevice = 1 }
 

Functions

JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_gamepadWasAdded (JNIEnv *env, jobject thisObj, jint HID_ID)
 
JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_gamepadWasRemoved (JNIEnv *env, jobject thisObj, jint HID_ID)
 
JNIEXPORT bool JNICALL Java_org_freestick_FreestickDeviceManager_gamepadDeviceUpdate (JNIEnv *env, jobject thisObj, jint deviceid, jint code, jint type, jfloat value, jint min, jint max)
 
JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_updateJoystickConnectedStatus (JNIEnv *env, jobject thisObj)
 

Macro Definition Documentation

◆ FS_LOGI

#define FS_LOGI (   ...)    ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__))

◆ FS_LOGW

#define FS_LOGW (   ...)    ((void)__android_log_print(ANDROID_LOG_WARN, "native-activity", __VA_ARGS__))

Enumeration Type Documentation

◆ JNICallBackType

Enumerator
JoystickAdded 
JoystickRemoved 
KeyEvent 
MotionEvent 

◆ UpdateType

enum UpdateType : int
strong
Enumerator
addedDevice 
removedDevice 

Function Documentation

◆ Java_org_freestick_FreestickDeviceManager_gamepadDeviceUpdate()

JNIEXPORT bool JNICALL Java_org_freestick_FreestickDeviceManager_gamepadDeviceUpdate ( JNIEnv *  env,
jobject  thisObj,
jint  deviceid,
jint  code,
jint  type,
jfloat  value,
jint  min,
jint  max 
)

◆ Java_org_freestick_FreestickDeviceManager_gamepadWasAdded()

JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_gamepadWasAdded ( JNIEnv *  env,
jobject  thisObj,
jint  HID_ID 
)

◆ Java_org_freestick_FreestickDeviceManager_gamepadWasRemoved()

JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_gamepadWasRemoved ( JNIEnv *  env,
jobject  thisObj,
jint  HID_ID 
)

◆ Java_org_freestick_FreestickDeviceManager_updateJoystickConnectedStatus()

JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_updateJoystickConnectedStatus ( JNIEnv *  env,
jobject  thisObj 
)