Ignore:
Timestamp:
Sep 14, 2013, 8:55:42 PM (6 years ago)
Author:
benlitz
Message:

input: added a name the controllers, and a static Get() function to easily retrieve a registered controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/btphystest.cpp

    r2910 r2925  
    7373
    7474    /* Register an input controller for the keyboard */
    75     m_controller = new Controller(KEY_MAX, 0);
     75    m_controller = new Controller("Default", KEY_MAX, 0);
    7676    m_controller->GetKey(KEY_MOVE_FORWARD).Bind("Keyboard", "Up");
    7777    m_controller->GetKey(KEY_MOVE_BACK).Bind("Keyboard", "Down");
Note: See TracChangeset for help on using the changeset viewer.