C4 Engine
C4 Engine API Documentation

InputMgr::FindInputDevice

Defined in:  C4Input.h
Returns the input device having a given name or type.
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

InputMgr::GetFirstInputDevice