Hello,
I have the component "Input Device Manager" on my Dialogue System, which is really useful but I also would like to integrate it in my Pause system via script.
Because I have a virtual cursor that I would like to disable and enable again along the pause state of my game and other conditions.
How would I check it in script?
Kind regards
Detect if mouse or joystick is used in script
-
- Posts: 22
- Joined: Fri Oct 01, 2021 11:50 am
Re: Detect if mouse or joystick is used in script
Hi,
You can check InputDeviceManager.instance.IsUsingJoystick(), IsUsingMouse(), or IsUsingKeyboard().
You can check InputDeviceManager.instance.IsUsingJoystick(), IsUsingMouse(), or IsUsingKeyboard().
-
- Posts: 22
- Joined: Fri Oct 01, 2021 11:50 am
Re: Detect if mouse or joystick is used in script
Thank you kind sir.
Re: Detect if mouse or joystick is used in script
Glad to help!