Daniele Bartolini пре 10 година
родитељ
комит
c4c21dd09c
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 2 1
      src/input/input_device.cpp
  2. 2 2
      src/input/input_device.h

+ 2 - 1
src/input/input_device.cpp

@@ -130,7 +130,8 @@ InputDevice* InputDevice::create(Allocator& a, const char* name, uint8_t num_but
 		+ sizeof(char*)*num_axes
 		+ sizeof(StringId32)*num_buttons
 		+ sizeof(StringId32)*num_axes
-		+ strlen32(name) + 1;
+		+ strlen32(name) + 1
+		;
 
 	InputDevice* id = (InputDevice*)a.allocate(size);
 

+ 2 - 2
src/input/input_device.h

@@ -76,9 +76,9 @@ public:
 	uint8_t* _current_state;   // num_buttons
 	Vector3* _axis;            // num_axes
 	const char** _button_name; // num_buttons
-	const char** _axis_name;   // num_buttons
+	const char** _axis_name;   // num_axes
 	StringId32* _button_hash;  // num_buttons
-	StringId32* _axis_hash;    // num_buttons
+	StringId32* _axis_hash;    // num_axes
 	char* _name;               // strlen32(name) + 1
 
 public: