 
     // Subscribe to PostUpdate event for updating the camera position after physics simulation
     SubscribeToEvent("PostUpdate", "HandlePostUpdate");
+
+    // Sbscribe to mobile touch events
+    if (GetPlatform() == "Android" || GetPlatform() == "iOS")
+        SubscribeToTouchEvents();
 }
 
 void HandleUpdate(StringHash eventType, VariantMap& eventData)

        // Reset grounded flag for next frame
        onGround = false;
    }
}

    // Create the UI content
    CreateInstructions();

    // Activate mobile stuff when appropriate
    if (GetPlatform() == "Android" || GetPlatform() == "iOS")
        InitTouchInput();

    // Subscribe to necessary events
    SubscribeToEvents();
