grabInputs

Grabs gamepad inputs.

Grabs the given sets of button and axes, requiring the SkyController UA device to send events from those inputs to application listeners instead forwarding them of the drone.

The provided sets of inputs completely overrides the current sets of grabbed inputs (if any). So, for instance, to release all inputs, this method should be called with empty buttons and axes sets. To grab or release some specific inputs without altering the rest of the grabbed inputs, getGrabbedButtons and getGrabbedAxes may be used to construct new sets of inputs to provide to this method.

Parameters

buttons

set of buttons to be grabbed

axes

set of axes to be grabbed

See also