has_input


Description:

public bool has_input (uint type, uint code)

Gets whether the device has the given input.

If the input is present, it means that the device can send events for it regardless of whether the device is mapped or not.

Parameters:

this

a device

type

the input type

code

the input code

Returns:

whether the device has the given input