OSDN Git Service

作業部屋#50802 画面キャプチャができなくなっていた問題を暫定対応(F12キー固定で対応中)
authorkairera0467 <gennsou76573@gmail.com>
Sat, 20 Apr 2019 16:57:59 +0000 (01:57 +0900)
committerkairera0467 <gennsou76573@gmail.com>
Sat, 20 Apr 2019 16:57:59 +0000 (01:57 +0900)
DTXManiaプロジェクト/コード/全体/CDTXMania.cs

index 4920ebc..4fab062 100644 (file)
@@ -3145,19 +3145,21 @@ for (int i = 0; i < 3; i++) {
                        }
                        else
                        {
-                               for ( int i = 0; i < 0x10; i++ )
-                               {
-                                       //var captureCode = (SlimDX.DirectInput.Key) ConfigIni.KeyAssign[ (int)EKeyConfigPad.Capture ][ i ];
-
-                                       //if( (int) captureCode > 0 &&
-                                       //      e.KeyCode == DeviceConstantConverter.KeyToKeys( captureCode ) )
-                                       //{
-                                       //      // Debug.WriteLine( "capture: " + string.Format( "{0:2x}", (int) e.KeyCode ) + " " + (int) e.KeyCode );
-                                       //      string strFullPath =
-                                       //         Path.Combine( CDTXMania.strEXEのあるフォルダ, "Capture_img" );
-                                       //      strFullPath = Path.Combine( strFullPath, DateTime.Now.ToString( "yyyyMMddHHmmss" ) + ".png" );
-                                       //      SaveResultScreen( strFullPath );
-                                       //}
+                               //for ( int i = 0; i < 0x10; i++ )
+                               {
+                    // 2019.04.21 kairera0467 作業部屋##50802 とりあえず問題解決できるまでキャプチャはF12固定とする
+                    //var captureCode = (SlimDX.DirectInput.Key) ConfigIni.KeyAssign[ (int)EKeyConfigPad.Capture ][ i ];
+                    var captureCode = SlimDX.DirectInput.Key.F12;
+
+                                       if( (int) captureCode > 0 &&
+                                               e.KeyCode == DeviceConstantConverter.KeyToKeys( captureCode ) )
+                                       {
+                                               // Debug.WriteLine( "capture: " + string.Format( "{0:2x}", (int) e.KeyCode ) + " " + (int) e.KeyCode );
+                                               string strFullPath =
+                                                  Path.Combine( CDTXMania.strEXEのあるフォルダ, "Capture_img" );
+                                               strFullPath = Path.Combine( strFullPath, DateTime.Now.ToString( "yyyyMMddHHmmss" ) + ".png" );
+                                               SaveResultScreen( strFullPath );
+                                       }
                                }
                        }
                }