FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
Functions | Variables
FSJNI_Wrapper.cpp File Reference
#include "USB/platform/Android/jni/src/FSJNI_Wrapper.h"
#include <android/input.h>
#include <algorithm>
#include <jni.h>
Include dependency graph for FSJNI_Wrapper.cpp:

Functions

JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_updateJoystickConnectedStatus (JNIEnv *env, jobject thisObj)
 
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_gamepadWasAdded (JNIEnv *env, jobject thisObj, jint HID_ID)
 
JNIEXPORT void JNICALL Java_org_freestick_FreestickDeviceManager_gamepadWasRemoved (JNIEnv *env, jobject thisObj, jint HID_ID)
 

Variables

const int InputDevice_SOURCE_GAMEPAD = 0x00000401
 
const int InputDevice_SOURCE_JOYSTICK = 0x01000010
 
const int InputDevice_SOURCE_DPAD = 0x00000201
 

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 
)

Variable Documentation

◆ InputDevice_SOURCE_DPAD

const int InputDevice_SOURCE_DPAD = 0x00000201

◆ InputDevice_SOURCE_GAMEPAD

const int InputDevice_SOURCE_GAMEPAD = 0x00000401

◆ InputDevice_SOURCE_JOYSTICK

const int InputDevice_SOURCE_JOYSTICK = 0x01000010