Explorar el Código

vs2010 compatibility

dmuratshin hace 9 años
padre
commit
379b781d84
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  1. 3 3
      oxygine/src/Input.cpp
  2. 3 3
      oxygine/src/Input.h

+ 3 - 3
oxygine/src/Input.cpp

@@ -108,12 +108,12 @@ namespace oxygine
     }
 
 #ifndef __S3E__
-    int Input::touchID2index(int64_t id)
+    int Input::touchID2index(int64 id)
     {
         id += 1;//id could be = 0 ?
         for (int i = 0; i < MAX_TOUCHES; ++i)
         {
-            int64_t& d = _ids[i];
+            int64& d = _ids[i];
             int index = i + 1;
             if (d == 0)
             {
@@ -128,7 +128,7 @@ namespace oxygine
         return -1;
     }
 
-    PointerState* Input::getTouchByID(int64_t id)
+    PointerState* Input::getTouchByID(int64 id)
     {
         int i = touchID2index(id);
         if (i == -1)

+ 3 - 3
oxygine/src/Input.h

@@ -26,8 +26,8 @@ namespace oxygine
         PointerState* getTouchByIndex(int index);
 
 #ifndef __S3E__
-        int touchID2index(int64_t id);
-        PointerState* getTouchByID(int64_t id);
+        int touchID2index(int64 id);
+        PointerState* getTouchByID(int64 id);
 #endif
 
 
@@ -35,7 +35,7 @@ namespace oxygine
         PointerState _pointers[MAX_TOUCHES];
         PointerState _pointerMouse;
 
-        int64_t _ids[MAX_TOUCHES + 1];
+        int64 _ids[MAX_TOUCHES + 1];
 
 
         void sendPointerButtonEvent(spStage, MouseButton button, float x, float y, float pressure, int type, PointerState*);