Ignore:
Timestamp:
Sep 14, 2013, 6:09:44 PM (6 years ago)
Author:
benlitz
Message:

input: added a GetAvailableDevices function to retrieve device names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input/input.cpp

    r2845 r2918  
    2222Array<InputDevice*> InputDevice::devices;
    2323bool InputDevice::m_capturemouse;
     24
     25Array<String> InputDevice::GetAvailableDevices()
     26{
     27    Array<String> result;
     28    for (int i = 0; i < devices.Count(); ++i)
     29    {
     30        result.Push(devices[i]->m_name);
     31    }
     32    return result;
     33}
    2434
    2535void InputDeviceInternal::AddKey(const char* name)
Note: See TracChangeset for help on using the changeset viewer.