Skip to content

InputManager::createInputObject(OIS::Mouse, false) crashes when mouse is not plugged in. #60

Description

@HeeMyung

Describe the bug
When an application is launched without a valid 'MOUSE' device. the program crashes when calling InputManager::createInputObject(OIS::Mouse, false) (raising an exception)

To Reproduce
Just run an application without proper 'MOUSE' device.

Expected behavior
Do not crash.

Platform (please complete the following information):

  • OS: Windows (OGRE)
  • Backend: DirectInput
  • Version 1.4

Additional context
You could think silly about launching without any valid mouse, but some people using my apps only with a trackball device, not with a mouse.
Funny thing is that if I run the program with plugged in a mouse and unplugging out after initialize, the program runs well and actually can control the mouse cursor with trackball device!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions