With GetJString returning a string, this whole function could be:

    ButtonManager::GamepadEvent(GetJString(env, jDevice), Button, Action);