MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / isModifierKeyPressed

Method isModifierKeyPressed

examples/OpenGLWindow/Win32Window.cpp:236–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool Win32Window::isModifierKeyPressed(int key)
237{
238 bool isPressed = false;
239
240 switch (key)
241 {
242 case B3G_ALT:
243 {
244 isPressed = ((sData->m_internalKeyModifierFlags & INTERNAL_ALT_MODIFIER) != 0);
245 break;
246 };
247 case B3G_SHIFT:
248 {
249 isPressed = ((sData->m_internalKeyModifierFlags & INTERNAL_SHIFT_MODIFIER) != 0);
250 break;
251 };
252 case B3G_CONTROL:
253 {
254 isPressed = ((sData->m_internalKeyModifierFlags & INTERNAL_CONTROL_MODIFIER) != 0);
255 break;
256 };
257
258 default:
259 {
260 }
261 };
262 return isPressed; //m_internalKeyModifierFlags
263}
264
265LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
266{

Callers 10

mouseButtonCallbackMethod · 0.45
mouseButtonCallbackMethod · 0.45
keyboardCallbackMethod · 0.45
mouseButtonCallbackMethod · 0.45
keyboardCallbackMethod · 0.45
mouseButtonCallbackMethod · 0.45
mouseButtonCallbackMethod · 0.45
keyboardCallbackMethod · 0.45
mouseMoveCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected