Просмотр исходного кода

Renaming Joystick to JoystickControl

seanpaultaylor 12 лет назад
Родитель
Сommit
203dc7987e
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      gameplay/src/JoystickControl.cpp
  2. 1 1
      gameplay/src/JoystickControl.h

+ 2 - 2
gameplay/src/JoystickControl.cpp

@@ -74,7 +74,7 @@ bool JoystickControl::isRelative() const
     return _relative;
 }
 
-const unsigned int JoystickControl::getIndex() const
+unsigned int JoystickControl::getIndex() const
 {
     return _index;
 }
@@ -349,7 +349,7 @@ unsigned int JoystickControl::drawImages(Form* form, const Rectangle& clip)
 
 const char* JoystickControl::getType() const
 {
-    return "Joystick";
+    return "joystick";
 }
 
 }

+ 1 - 1
gameplay/src/JoystickControl.h

@@ -106,7 +106,7 @@ public:
      *
      * @return The index of this joystick on a form.
      */
-    const unsigned int getIndex() const;
+    unsigned int getIndex() const;
     
     /**
      * @see Control::getType