@YTN wrote:
This might be a special case... I have a chromebook which I installed Linux on (GalliumOS). It does not have a touchscreen (but some do).
My code works fine on Windows (OpenGL) and Android, but fails to run on the chromebook with the following exception:
Unhandled Exception:
System.EntryPointNotFoundException: GetSystemMetrics
at (wrapper managed-to-native) Microsoft.Xna.Framework.Input.Touch.TouchPanelCapabilities:GetSystemMetrics (int)
at Microsoft.Xna.Framework.Input.Touch.TouchPanelCapabilities.Initialize () <0x41a720d0 + 0x00027> in :0
at Microsoft.Xna.Framework.Input.Touch.TouchPanelState.GetCapabilities () <0x41a72050 + 0x00023> in :0
at Microsoft.Xna.Framework.Input.Touch.TouchPanel.GetCapabilities () <0x41a72000 + 0x00023> in :0
at MyGame._mouseUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x41a71950 + 0x00097> in :0I have Mono 4.4.2 installed.
If I comment out the code which checks for / uses touchscreen, then the game runs fine on the chromebook.
Any suggestions on how I can solve this?
It would be great to support both touch and mouse input on these hybrid platforms, since I suspect there will be a lot more of them in the near future.
Thanks!
Posts: 2
Participants: 2