diff --git a/Blarg.GameFramework.SDL2/SDLApplication.cs b/Blarg.GameFramework.SDL2/SDLApplication.cs index a0a5371..d6602d1 100644 --- a/Blarg.GameFramework.SDL2/SDLApplication.cs +++ b/Blarg.GameFramework.SDL2/SDLApplication.cs @@ -551,30 +551,30 @@ namespace Blarg.GameFramework Logger.Info(LOG_TAG, "Window marked inactive."); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_RESTORED: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_RESTORED: Logger.Info(LOG_TAG, "Window focus gained."); Logger.Info(LOG_TAG, "Window marked active."); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_ENTER: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_ENTER: Logger.Info(LOG_TAG, "Gained mouse focus."); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_LEAVE: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_LEAVE: Logger.Info(LOG_TAG, "Lost mouse focus."); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_FOCUS_GAINED: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_FOCUS_GAINED: Logger.Info(LOG_TAG, "Gained input device focus."); OnAppGainFocus(); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_FOCUS_LOST: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_FOCUS_LOST: Logger.Info(LOG_TAG, "Lost input device focus."); OnAppLostFocus(); break; - case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_RESIZED: + case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_RESIZED: Logger.Info(LOG_TAG, "Window resized to {0}x{1}.", e.window.data1, e.window.data2); Rect size = new Rect(); size.Right = e.window.data1; @@ -593,17 +593,17 @@ namespace Blarg.GameFramework _isQuitting = true; break; - case SDL.SDL_EventType.SDL_KEYDOWN: - case SDL.SDL_EventType.SDL_KEYUP: + case SDL.SDL_EventType.SDL_KEYDOWN: + case SDL.SDL_EventType.SDL_KEYUP: _keyboard.OnKeyEvent(e.key); break; - case SDL.SDL_EventType.SDL_MOUSEMOTION: + case SDL.SDL_EventType.SDL_MOUSEMOTION: _mouse.OnMotionEvent(e.motion); break; - case SDL.SDL_EventType.SDL_MOUSEBUTTONDOWN: - case SDL.SDL_EventType.SDL_MOUSEBUTTONUP: + case SDL.SDL_EventType.SDL_MOUSEBUTTONDOWN: + case SDL.SDL_EventType.SDL_MOUSEBUTTONUP: _mouse.OnButtonEvent(e.button); break; } diff --git a/Blarg.GameFramework.sln b/Blarg.GameFramework.sln index 3d05464..fffb17e 100644 --- a/Blarg.GameFramework.sln +++ b/Blarg.GameFramework.sln @@ -34,5 +34,42 @@ Global EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution StartupItem = Game.SDL2\Game.SDL2.csproj + Policies = $0 + $0.TextStylePolicy = $1 + $1.TabsToSpaces = False + $1.inheritsSet = VisualStudio + $1.inheritsScope = text/plain + $1.scope = text/x-csharp + $0.CSharpFormattingPolicy = $2 + $2.IndentSwitchBody = True + $2.AnonymousMethodBraceStyle = NextLine + $2.PropertyBraceStyle = NextLine + $2.PropertyGetBraceStyle = NextLine + $2.PropertySetBraceStyle = NextLine + $2.EventBraceStyle = NextLine + $2.EventAddBraceStyle = NextLine + $2.EventRemoveBraceStyle = NextLine + $2.StatementBraceStyle = NextLine + $2.ElseNewLinePlacement = NewLine + $2.CatchNewLinePlacement = NewLine + $2.FinallyNewLinePlacement = NewLine + $2.WhileNewLinePlacement = DoNotCare + $2.ArrayInitializerWrapping = DoNotChange + $2.ArrayInitializerBraceStyle = NextLine + $2.BeforeMethodDeclarationParentheses = False + $2.BeforeMethodCallParentheses = False + $2.BeforeConstructorDeclarationParentheses = False + $2.BeforeDelegateDeclarationParentheses = False + $2.NewParentheses = False + $2.SpacesBeforeBrackets = False + $2.inheritsSet = Mono + $2.inheritsScope = text/x-csharp + $2.scope = text/x-csharp + $0.TextStylePolicy = $3 + $3.FileWidth = 120 + $3.TabsToSpaces = False + $3.inheritsSet = VisualStudio + $3.inheritsScope = text/plain + $3.scope = text/plain EndGlobalSection EndGlobal