Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

AnnEventManager : Why are JoystickBuffer object allocated manually on the heap? #141

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

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.

Ybalrid commented 7 years ago

Engine crashing when capturing joystick event. Attempting to dereference deleted ois joystick pointer...