@@ -167,62 +167,6 @@ void APPB::EndLongOp(bool fAll)
167167 RefreshCurs ();
168168}
169169
170- /* **************************************************************************
171- Get the current cursor/modifier state. If fAsync is set, the key state
172- returned is the actual current values at the hardware level, ie, not
173- synchronized with the command stream.
174- ***************************************************************************/
175- uint32_t APPB::GrfcustCur (bool fAsync )
176- {
177- AssertThis (0 );
178-
179- #ifdef KAUAI_WIN32
180-
181- auto pfnT = fAsync ? GetAsyncKeyState : GetKeyState;
182- _grfcust &= ~kgrfcustUser;
183- if (pfnT (VK_CONTROL ) < 0 )
184- _grfcust |= fcustCmd;
185- if (pfnT (VK_SHIFT ) < 0 )
186- _grfcust |= fcustShift;
187- if (pfnT (VK_MENU ) < 0 )
188- _grfcust |= fcustOption;
189- if (pfnT (VK_LBUTTON ) < 0 )
190- _grfcust |= fcustMouse;
191- #endif // KAUAI_WIN32
192- #ifdef MAC
193- Assert (!fAsync , " Unimplemented code" ); // REVIEW shonk: Mac: implement
194- #endif // MAC
195-
196- #ifdef KAUAI_SDL
197- uint32_t ret;
198-
199- _grfcust &= ~kgrfcustUser;
200-
201- ret = SDL_GetMouseState (pvNil, pvNil);
202- if (ret & SDL_BUTTON (1 ))
203- {
204- _grfcust |= fcustMouse;
205- }
206-
207- ret = SDL_GetModState ();
208- if (ret & SDL_Keymod::KMOD_CTRL )
209- {
210- _grfcust |= fcustCmd;
211- }
212- if (ret & SDL_Keymod::KMOD_ALT )
213- {
214- _grfcust |= fcustOption;
215- }
216- if (ret & SDL_Keymod::KMOD_SHIFT )
217- {
218- _grfcust |= fcustShift;
219- }
220-
221- #endif // KAUAI_SDL
222-
223- return _grfcust;
224- }
225-
226170/* **************************************************************************
227171 Modify the current cursor/modifier state. Doesn't affect the key
228172 states or mouse state.
0 commit comments