You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor to make accelerometer and compass classes available in cross-platform apps. (MonoGame#8663)
FixesMonoGame#8664
### Description of Change
Moved the SensorData classes up to the top level (still don't like that
the namespaces are `Microsoft.Devices.*`), then refactored the Platform
classes to remove the iOS IFDEF, following more consistent patterns in
the codebase.
Then added the classes to the non supported classes (the throw
`PlatformNotSupported` exceptions if called), but this now allows game
devs to use Accelerometer and Compass classes in a more cross-platform
way.
Since Microsoft has pulled the WinPhone, in MG 4, we should consider
renaming the namespace to `MonoGame.Devices.*`, IMHO.
Copy file name to clipboardExpand all lines: MonoGame.Framework/MonoGame/Framework/Devices/Sensors/AccelerometerFailedException.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
// This file is subject to the terms and conditions defined in
3
3
// file 'LICENSE.txt', which is part of this source code package.
4
4
5
-
namespaceMicrosoft.Devices.Sensors
5
+
namespaceMonoGame.Framework.Devices.Sensors
6
6
{
7
7
/// <summary>
8
8
/// The exception that may be thrown during a call to Start() or Stop(). The Message field describes the reason for the exception and the ErrorId field contains the error code from the underlying native code implementation of the accelerometer framework.
0 commit comments