InputMgr::FindInputDevice
Defined in:
Returns the input device having a given name or type.
C4Input.h
Prototype
InputDevice *FindInputDevice(const char *name) const;
InputDevice *FindInputDevice(InputDeviceType type) const;
InputDevice *FindInputDevice(InputDeviceType type, const char *name) const;
Parameters
name |
The name of the device to find. |
type |
The type of the device to find. |
Description
The FindInputDevice
function returns either the first input device having the name matching the name
parameter or the first input device having the type matching the type
parameter. If both the name
and type
parameters are specified, then the first input device with the matching name and type is returned. If no input device matches the given parameters, then the return value is nullptr
.
See Also