mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
*** empty log message ***
This commit is contained in:
parent
b77489818e
commit
28c07298d5
@ -40,11 +40,17 @@ queue_event(CPT_Event event) {
|
|||||||
<< "Ignoring event " << *event << "; event queue full.\n";
|
<< "Ignoring event " << *event << "; event queue full.\n";
|
||||||
} else {
|
} else {
|
||||||
_queue.insert(event);
|
_queue.insert(event);
|
||||||
if (event_cat.is_debug()) {
|
if (event_cat.is_spam() || event_cat.is_debug()) {
|
||||||
|
if (event->get_name() == "NewFrame") {
|
||||||
|
// Don't bother us with this particularly spammy event.
|
||||||
|
event_cat.spam()
|
||||||
|
<< "Throwing event " << *event << "\n";
|
||||||
|
} else {
|
||||||
event_cat.debug()
|
event_cat.debug()
|
||||||
<< "Throwing event " << *event << "\n";
|
<< "Throwing event " << *event << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -118,7 +118,7 @@ get_current_position() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: LineSegs::create
|
// Function: LineSegs::create
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description: Appends to an existing GeomNode a new pfGeoSet that
|
// Description: Appends to an existing GeomNode a new Geom that
|
||||||
// will render the series of line segments and points
|
// will render the series of line segments and points
|
||||||
// described via calls to move_to() and draw_to(). The
|
// described via calls to move_to() and draw_to(). The
|
||||||
// lines and points are created with the color and
|
// lines and points are created with the color and
|
||||||
|
@ -112,6 +112,22 @@ lookup_key(WPARAM wparam) const {
|
|||||||
case VK_F12: return KeyboardButton::f12();
|
case VK_F12: return KeyboardButton::f12();
|
||||||
case VK_INSERT: return KeyboardButton::insert();
|
case VK_INSERT: return KeyboardButton::insert();
|
||||||
case VK_DELETE: return KeyboardButton::del();
|
case VK_DELETE: return KeyboardButton::del();
|
||||||
|
|
||||||
|
case VK_SHIFT:
|
||||||
|
case VK_LSHIFT:
|
||||||
|
case VK_RSHIFT:
|
||||||
|
return KeyboardButton::shift();
|
||||||
|
|
||||||
|
case VK_CONTROL:
|
||||||
|
case VK_LCONTROL:
|
||||||
|
case VK_RCONTROL:
|
||||||
|
return KeyboardButton::control();
|
||||||
|
|
||||||
|
case VK_MENU:
|
||||||
|
case VK_LMENU:
|
||||||
|
case VK_RMENU:
|
||||||
|
return KeyboardButton::alt();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
int key = MapVirtualKey(wparam, 2);
|
int key = MapVirtualKey(wparam, 2);
|
||||||
if (isascii(key) && key != 0) {
|
if (isascii(key) && key != 0) {
|
||||||
|
@ -343,6 +343,22 @@ wglGraphicsPipe::lookup_key(WPARAM wparam) const {
|
|||||||
case VK_F12: return KeyboardButton::f12();
|
case VK_F12: return KeyboardButton::f12();
|
||||||
case VK_INSERT: return KeyboardButton::insert();
|
case VK_INSERT: return KeyboardButton::insert();
|
||||||
case VK_DELETE: return KeyboardButton::del();
|
case VK_DELETE: return KeyboardButton::del();
|
||||||
|
|
||||||
|
case VK_SHIFT:
|
||||||
|
case VK_LSHIFT:
|
||||||
|
case VK_RSHIFT:
|
||||||
|
return KeyboardButton::shift();
|
||||||
|
|
||||||
|
case VK_CONTROL:
|
||||||
|
case VK_LCONTROL:
|
||||||
|
case VK_RCONTROL:
|
||||||
|
return KeyboardButton::control();
|
||||||
|
|
||||||
|
case VK_MENU:
|
||||||
|
case VK_LMENU:
|
||||||
|
case VK_RMENU:
|
||||||
|
return KeyboardButton::alt();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
int key = MapVirtualKey(wparam, 2);
|
int key = MapVirtualKey(wparam, 2);
|
||||||
if (isascii(key) && key != 0) {
|
if (isascii(key) && key != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user