ユーザ用ツール

サイト用ツール


x88000

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
x88000 [2021/01/14 09:27] – [ビルド可能にする(Windows版)] arakix88000 [2021/01/14 09:37] (現在) – [カーソルキーの機能を変える(Windows版)] araki
行 31: 行 31:
 <code> <code>
 #if 0 #if 0
-    typedef HRESULT WINAPI DirectInputCreateProc+    typedef HRESULT WINAPI DirectInputCreateProc(
         HINSTANCE, DWORD, IDirectInput**, IUnknown*);         HINSTANCE, DWORD, IDirectInput**, IUnknown*);
     DirectInputCreateProc* pprocDirectInputCreate = (DirectInputCreateProc*)     DirectInputCreateProc* pprocDirectInputCreate = (DirectInputCreateProc*)
行 147: 行 147:
 ''X8Frame.cpp''内'' CX88Frame::UpdateAllKeyMatrics()''処理内に以下の変更。 ''X8Frame.cpp''内'' CX88Frame::UpdateAllKeyMatrics()''処理内に以下の変更。
 <code> <code>
- } else { + } else { 
- bShift = IsKeyPressed(VK_SHIFT); + bShift = IsKeyPressed(VK_SHIFT); 
- }+ }
 #if 0 #if 0
- bool bUpArrow = IsKeyPressed(VK_UP), + bool bUpArrow = IsKeyPressed(VK_UP), 
- bRightArrow = IsKeyPressed(VK_RIGHT);+ bRightArrow = IsKeyPressed(VK_RIGHT); 
 + if (X88k().PC88().Z80Main().GetBasicMode() == 
 + CPC88Z80Main::BASICMODE_N80V1) 
 +
 + if (IsKeyPressed(VK_DOWN)) { 
 + bShift = bUpArrow = true; 
 +
 + if (IsKeyPressed(VK_LEFT)) { 
 + bShift = bRightArrow = true; 
 +
 +
 +#else 
 + bool bUpArrow = false, bRightArrow = false; 
 + if (m_cursorMode == 0||IsKeyPressed(VK_CONTROL)) 
 +
 + bUpArrow = IsKeyPressed(VK_UP); 
 + bRightArrow = IsKeyPressed(VK_RIGHT);
  if (X88k().PC88().Z80Main().GetBasicMode() ==  if (X88k().PC88().Z80Main().GetBasicMode() ==
- CPC88Z80Main::BASICMODE_N80V1)+ CPC88Z80Main::BASICMODE_N80V1)
  {  {
  if (IsKeyPressed(VK_DOWN)) {  if (IsKeyPressed(VK_DOWN)) {
行 163: 行 179:
  }  }
  }  }
-#else +
- bool bUpArrow = false, bRightArrow = false; + else 
- if (m_cursorMode == 0||IsKeyPressed(VK_CONTROL))+ { 
 + if (IsKeyPressed(VK_DOWN) || IsKeyPressed(VK_LEFT) || IsKeyPressed(VK_RIGHT) || IsKeyPressed(VK_UP))
  {  {
- bUpArrow = IsKeyPressed(VK_UP); + if (m_cursorMode == 1)
- bRightArrow = IsKeyPressed(VK_RIGHT); +
- if (X88k().PC88().Z80Main().GetBasicMode() == +
- CPC88Z80Main::BASICMODE_N80V1)+
  {  {
- if (IsKeyPressed(VK_DOWN)) + X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(VK_DOWN)); 
- bShift = bUpArrow = true+ X88k().SetKeyMatrics(0x00, 4, IsKeyPressed(VK_LEFT)); 
- + X88k().SetKeyMatrics(0x00, 6, IsKeyPressed(VK_RIGHT))
- if (IsKeyPressed(VK_LEFT)) { + X88k().SetKeyMatrics(0x01, 0, IsKeyPressed(VK_UP));
- bShift = bRightArrow = true+
- }+
  }  }
 + else
 + {
 + X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(VK_DOWN));
 + X88k().SetKeyMatrics(0x00, 1, IsKeyPressed(VK_LEFT));
 + X88k().SetKeyMatrics(0x00, 3, IsKeyPressed(VK_RIGHT));
 + X88k().SetKeyMatrics(0x00, 5, IsKeyPressed(VK_UP));
 + }
 + return;
  }  }
- else+
 +#endif 
 + X88k().SetKeyMatrics(0x00, 0, IsKeyPressed(VK_NUMPAD0)); 
 + X88k().SetKeyMatrics(0x00, 1, IsKeyPressed(VK_NUMPAD1)); 
 +... 
 +        } 
 +        else 
 +        { 
 +            bShift = IsKeyPressed(DIK_LSHIFT, DIK_RSHIFT); 
 +        } 
 +#if 0 
 +        bool bUpArrow = IsKeyPressed(DIK_UP), 
 +            bRightArrow = IsKeyPressed(DIK_RIGHT); 
 +        if (X88k().PC88().Z80Main().GetBasicMode() == 
 +                CPC88Z80Main::BASICMODE_N80V1) 
 +        { 
 +            if (IsKeyPressed(DIK_DOWN)) { 
 +                bShift = bUpArrow = true; 
 +            } 
 +            if (IsKeyPressed(DIK_LEFT)) { 
 +                bShift = bRightArrow = true; 
 +            } 
 +        } 
 +#else 
 + bool bUpArrow = false, bRightArrow = false; 
 + if (m_cursorMode == 0||IsKeyPressed(DIK_LCONTROL, DIK_RCONTROL)) 
 +
 + bUpArrow = IsKeyPressed(DIK_UP); 
 + bRightArrow = IsKeyPressed(DIK_RIGHT); 
 + if (X88k().PC88().Z80Main().GetBasicMode() == 
 + CPC88Z80Main::BASICMODE_N80V1)
  {  {
- if (IsKeyPressed(VK_DOWN) || IsKeyPressed(VK_LEFT) || IsKeyPressed(VK_RIGHT) || IsKeyPressed(VK_UP))+ if (IsKeyPressed(DIK_DOWN)) { 
 + bShift = bUpArrow = true; 
 +
 + if (IsKeyPressed(DIK_LEFT)) { 
 + bShift = bRightArrow = true; 
 +
 +
 +
 + else 
 +
 + if (IsKeyPressed(DIK_DOWN) || IsKeyPressed(DIK_LEFT) || IsKeyPressed(DIK_RIGHT) || IsKeyPressed(DIK_UP)) 
 +
 + if (m_cursorMode == 1) 
 +
 + X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(DIK_DOWN)); 
 + X88k().SetKeyMatrics(0x00, 4, IsKeyPressed(DIK_LEFT)); 
 + X88k().SetKeyMatrics(0x00, 6, IsKeyPressed(DIK_RIGHT)); 
 + X88k().SetKeyMatrics(0x01, 0, IsKeyPressed(DIK_UP))
 +
 + else
  {  {
- if (m_cursorMode == 1) + X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(DIK_DOWN)); 
-+ X88k().SetKeyMatrics(0x00, 1, IsKeyPressed(DIK_LEFT)); 
- X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(VK_DOWN)); + X88k().SetKeyMatrics(0x00, 3, IsKeyPressed(DIK_RIGHT)); 
- X88k().SetKeyMatrics(0x00, 4, IsKeyPressed(VK_LEFT)); + X88k().SetKeyMatrics(0x00, 5, IsKeyPressed(DIK_UP));
- X88k().SetKeyMatrics(0x00, 6, IsKeyPressed(VK_RIGHT)); +
- X88k().SetKeyMatrics(0x01, 0, IsKeyPressed(VK_UP)); +
- +
- else +
-+
- X88k().SetKeyMatrics(0x00, 2, IsKeyPressed(VK_DOWN)); +
- X88k().SetKeyMatrics(0x00, 1, IsKeyPressed(VK_LEFT)); +
- X88k().SetKeyMatrics(0x00, 3, IsKeyPressed(VK_RIGHT)); +
- X88k().SetKeyMatrics(0x00, 5, IsKeyPressed(VK_UP))+
-+
- return;+
  }  }
 + return;
  }  }
 + }
 #endif #endif
- X88k().SetKeyMatrics(0x00, 0, IsKeyPressed(VK_NUMPAD0)); +        X88k().SetKeyMatric(0x00, 0, IsKeyPressed(DIK_NUMPAD0));
- X88k().SetKeyMatrics(0x00, 1, IsKeyPressed(VK_NUMPAD1));+
 </code> </code>
  
x88000.1610584051.txt.gz · 最終更新: 2021/01/14 09:27 by araki