if (action == AKEY_EVENT_ACTION_DOWN || action == AKEY_EVENT_ACTION_UP || action == AKEY_EVENT_ACTION_MULTIPLE)
{
processKeyEvent(_event, states);
//New part
int32_t key = AKeyEvent_getKeyCode(_event);
if(mUsingVolumeKeys && (key == 24 || key == 25)) //24, 25 are the values for the volume keys
{
handled = 0;
AInputQueue_finishEvent(states->inputQueue, _event, handled);
return 1;
}
}