In the joystick code, each Joystick detected by the engine at startup is represented by adding a Joystick Buffer object into a vector. Theses objects encapsulate a pointer given by OIS, but the don't need to be stored on the heap. Especially using naked pointers.
In the joystick code, each Joystick detected by the engine at startup is represented by adding a Joystick Buffer object into a vector. Theses objects encapsulate a pointer given by OIS, but the don't need to be stored on the heap. Especially using naked pointers.