x88000
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| x88000 [2021/01/14 00:28] – [ビルド可能にする(Windows版)] araki | x88000 [2025/06/03 01:23] (現在) – [カーソルキーの機能を変える(Windows版)] araki | ||
|---|---|---|---|
| 行 29: | 行 29: | ||
| * DirectInput8 のインスタンスが作成されるようにする。('' | * DirectInput8 のインスタンスが作成されるようにする。('' | ||
| - | < | + | < |
| #if 0 | #if 0 | ||
| typedef HRESULT WINAPI DirectInputCreateProc( | typedef HRESULT WINAPI DirectInputCreateProc( | ||
| 行 90: | 行 90: | ||
| '' | '' | ||
| - | < | + | < |
| 91: // keyboard state table | 91: // keyboard state table | ||
| 92: static uint8_t m_abtKeyboardState[256]; | 92: static uint8_t m_abtKeyboardState[256]; | ||
| 行 100: | 行 100: | ||
| '' | '' | ||
| - | < | + | < |
| 118:// keyboard state table | 118:// keyboard state table | ||
| 119: | 119: | ||
| 行 114: | 行 114: | ||
| '' | '' | ||
| - | < | + | < |
| case IDM_VERSION: | case IDM_VERSION: | ||
| OnHelpMenuCommand(LOWORD(wParam)); | OnHelpMenuCommand(LOWORD(wParam)); | ||
| 行 146: | 行 146: | ||
| '' | '' | ||
| - | < | + | < |
| - | } 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:: | ||
| + | { | ||
| + | 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:: | + | CPC88Z80Main:: |
| { | { | ||
| 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) | ||
| { | { | ||
| - | bUpArrow = IsKeyPressed(VK_UP); | + | if (m_cursorMode |
| - | bRightArrow = IsKeyPressed(VK_RIGHT); | + | |
| - | if (X88k().PC88().Z80Main().GetBasicMode() | + | |
| - | CPC88Z80Main:: | + | |
| { | { | ||
| - | if (IsKeyPressed(VK_DOWN)) | + | X88k().SetKeyMatrics(0x00, |
| - | bShift = bUpArrow = true; | + | X88k().SetKeyMatrics(0x00, |
| - | } | + | X88k().SetKeyMatrics(0x00, |
| - | if | + | X88k().SetKeyMatrics(0x01, |
| - | bShift = bRightArrow = true; | + | |
| - | } | + | |
| } | } | ||
| + | else | ||
| + | { | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | } | ||
| + | return; | ||
| } | } | ||
| - | else | + | } |
| + | #endif | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | ... | ||
| + | } | ||
| + | | ||
| + | { | ||
| + | bShift = IsKeyPressed(DIK_LSHIFT, | ||
| + | } | ||
| + | #if 0 | ||
| + | bool bUpArrow = IsKeyPressed(DIK_UP), | ||
| + | bRightArrow = IsKeyPressed(DIK_RIGHT); | ||
| + | if (X88k().PC88().Z80Main().GetBasicMode() == | ||
| + | CPC88Z80Main:: | ||
| + | { | ||
| + | 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, | ||
| + | { | ||
| + | bUpArrow = IsKeyPressed(DIK_UP); | ||
| + | bRightArrow = IsKeyPressed(DIK_RIGHT); | ||
| + | if (X88k().PC88().Z80Main().GetBasicMode() == | ||
| + | CPC88Z80Main:: | ||
| { | { | ||
| - | 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, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x00, | ||
| + | X88k().SetKeyMatrics(0x01, | ||
| + | } | ||
| + | else | ||
| { | { | ||
| - | if (m_cursorMode == 1) | + | X88k().SetKeyMatrics(0x00, |
| - | { | + | X88k().SetKeyMatrics(0x00, |
| - | X88k().SetKeyMatrics(0x00, | + | X88k().SetKeyMatrics(0x00, |
| - | X88k().SetKeyMatrics(0x00, | + | X88k().SetKeyMatrics(0x00, |
| - | X88k().SetKeyMatrics(0x00, | + | |
| - | X88k().SetKeyMatrics(0x01, | + | |
| - | } | + | |
| - | else | + | |
| - | { | + | |
| - | X88k().SetKeyMatrics(0x00, | + | |
| - | X88k().SetKeyMatrics(0x00, | + | |
| - | X88k().SetKeyMatrics(0x00, | + | |
| - | X88k().SetKeyMatrics(0x00, | + | |
| - | } | + | |
| - | return; | + | |
| } | } | ||
| + | return; | ||
| } | } | ||
| + | } | ||
| #endif | #endif | ||
| - | X88k().SetKeyMatrics(0x00, 0, IsKeyPressed(VK_NUMPAD0)); | + | |
| - | X88k().SetKeyMatrics(0x00, | + | |
| </ | </ | ||
x88000.1610584121.txt.gz · 最終更新: by araki
