OSDN Git Service

#24621 To handle POV input correctly in SlimDX GetPointOfViewControllers().
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Wed, 9 Mar 2011 18:16:35 +0000 (18:16 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Wed, 9 Mar 2011 18:16:35 +0000 (18:16 +0000)
JoystickState's constructor must intialize POV value as -1. (not zero.)

git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@132 16f42ceb-6dc6-49c8-ba94-f2d53467949d

SlimDXc_Jun2010(VC++2008)/source/directinput/JoystickState.cpp

index 1cc0fda..dcfc128 100644 (file)
@@ -41,7 +41,7 @@ namespace DirectInput
        {\r
                timeStamp = 0;\r
                sliders = gcnew array<int>( 2 );\r
-               povs = gcnew array<int>( 4 );\r
+               povs = gcnew array<int>( 4 ) { -1, -1, -1, -1};         // 2011.3.9 yyagi add initializer to "-1".\r
                pressedButtons = gcnew array<bool>( 128 );\r
                releasedButtons = gcnew array<bool>( 128 );\r
                vsliders = gcnew array<int>( 2 );\r