Changeset 3022 for trunk/src/opengl/glut/win32_winproc.c
- Timestamp:
- Mar 5, 2000, 11:21:10 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/win32_winproc.c
r2996 r3022 1 /* $Id: win32_winproc.c,v 1. 3 2000-03-04 19:10:17jeroen Exp $ */1 /* $Id: win32_winproc.c,v 1.4 2000-03-05 10:19:39 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 /* portions Copyright (c) Mark Kilgard, 1997, 1998. */ … … 41 41 window->visState = visState; 42 42 __glutSetWindow(window); 43 window->windowStatus(visState);43 ((GLUTwindowStatusCB)(window->windowStatus))(visState); 44 44 } 45 45 } … … 157 157 /* Delete is an ASCII character. */ 158 158 if (window->keyboardUp) { 159 window->keyboardUp((unsigned char) 127, point.x, point.y);159 ((GLUTkeyboardCB)(window->keyboardUp))((unsigned char) 127, point.x, point.y); 160 160 } 161 161 return 0; … … 176 176 if (!(__glutModifierMask & ShiftMask)) 177 177 key = tolower(key); 178 window->keyboardUp((unsigned char) key, point.x, point.y);178 ((GLUTkeyboardCB)(window->keyboardUp))((unsigned char) key, point.x, point.y); 179 179 } 180 180 } … … 222 222 if (GetKeyState(VK_MENU) < 0) 223 223 __glutModifierMask |= Mod1Mask; 224 window->keyboard((unsigned char)wParam, point.x, point.y);224 ((GLUTkeyboardCB)(window->keyboard))((unsigned char)wParam, point.x, point.y); 225 225 __glutModifierMask = (unsigned int) ~0; 226 226 } … … 365 365 if (GetKeyState(VK_MENU) < 0) 366 366 __glutModifierMask |= Mod1Mask; 367 window->keyboard(key, point.x, point.y);367 ((GLUTkeyboardCB)(window->keyboard))(key, point.x, point.y); 368 368 __glutModifierMask = (unsigned int) ~0; 369 369 … … 428 428 if (GetKeyState(VK_MENU) < 0) 429 429 __glutModifierMask |= Mod1Mask; 430 window->mouse(button, GLUT_DOWN, x, y);430 ((GLUTmouseCB)(window->mouse))(button, GLUT_DOWN, x, y); 431 431 __glutModifierMask = (unsigned int)~0; 432 432 } else { … … 493 493 if (GetKeyState(VK_MENU) < 0) 494 494 __glutModifierMask |= Mod1Mask; 495 window->mouse(button, GLUT_UP, x, y);495 ((GLUTmouseCB)(window->mouse))(button, GLUT_UP, x, y); 496 496 __glutModifierMask = (unsigned int)~0; 497 497 } else { … … 528 528 #if 0 529 529 if (__glutIdleFunc) 530 __glutIdleFunc();530 ((GLUTidleCB)(__glutIdleFunc))(); 531 531 #endif 532 532 if (__glutTimerList) … … 576 576 (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) { 577 577 __glutSetWindow(window); 578 window->motion(x, y);578 ((GLUTmotionCB)(window->motion))(x, y); 579 579 } 580 580 /* If passive motion function registered _and_ … … 586 586 0)) { 587 587 __glutSetWindow(window); 588 window->passive(x, y);588 ((GLUTpassiveCB)(window->passive))(x, y); 589 589 } 590 590 } … … 659 659 if (window->entry) { 660 660 __glutSetWindow(window); 661 window->entry(GLUT_ENTERED);661 ((GLUTentryCB)(window->entry))(GLUT_ENTERED); 662 662 /* XXX Generation of fake passive notify? See how much 663 663 work the X11 code does to support fake passive notify … … 689 689 if (window->entry) { 690 690 __glutSetWindow(window); 691 window->entry(GLUT_LEFT);691 ((GLUTentryCB)(window->entry))(GLUT_LEFT); 692 692 } 693 693 if (window->joystick && __glutCurrentWindow) {
Note:
See TracChangeset
for help on using the changeset viewer.