if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_MOTION) {
s32 source = AInputEvent_getSource(event);
if (source & AINPUT_SOURCE_MOUSE) // TRUE on mouse wheel
{
LOGV("ITS A MOUSE!");
}
// always 0!
f32 v = AMotionEvent_getAxisValue(event, AMOTION_EVENT_AXIS_VSCROLL, 0);
f32 h = AMotionEvent_getAxisValue(event, AMOTION_EVENT_AXIS_HSCROLL, 0);
}
Pointer index is always 0.
How can i read mouse wheel values?