*/
#include "List.h"
-#include "jutils/jutils-details.hpp"
+#include "View.h"
#include "ScanResult.h"
#include "WifiConfiguration.h"
#include "ApplicationInfo.h"
+#include "jutils/jutils-details.hpp"
+
using namespace jni;
template <typename T>
template class CJNIList<CJNIScanResult>;
template class CJNIList<CJNIWifiConfiguration>;
template class CJNIList<CJNIApplicationInfo>;
+template class CJNIList<CJNIViewInputDeviceMotionRange>;
"getName", "()Ljava/lang/String;"));
}
+int CJNIViewInputDevice::getSources() const
+{
+ return call_method<int>(m_object,
+ "getSources", "()I");
+}
+
+const CJNIList<CJNIViewInputDeviceMotionRange> CJNIViewInputDevice::getMotionRanges() const
+{
+ return call_method<jhobject>(m_object,
+ "getMotionRanges", "()Ljava/util/List;");
+}
+
const CJNIViewInputDeviceMotionRange CJNIViewInputDevice::getMotionRange(int axis) const
{
return call_method<jhobject>(m_object,
axis);
}
+const CJNIViewInputDeviceMotionRange CJNIViewInputDevice::getMotionRange(int axis, int source) const
+{
+ return call_method<jhobject>(m_object,
+ "getMotionRange", "(II)Landroid/view/InputDevice$MotionRange;",
+ axis, source);
+}
+
/************************************************************************/
/************************************************************************/
int CJNIView::SYSTEM_UI_FLAG_FULLSCREEN(0);
*/
#include "JNIBase.h"
+#include "List.h"
class CJNIViewInputDeviceMotionRange : public CJNIBase
{
static const CJNIViewInputDevice getDevice(int id);
std::string getName() const;
+ int getSources() const;
+ const CJNIList<CJNIViewInputDeviceMotionRange> getMotionRanges() const;
const CJNIViewInputDeviceMotionRange getMotionRange(int axis) const;
+ const CJNIViewInputDeviceMotionRange getMotionRange(int axis, int source) const;
private:
CJNIViewInputDevice();