Panda3D
|
This is a structure representing a single input device that may be associated with a window. Typically this will be a keyboard/mouse pair, and there will be exactly one of these associated with each window, but other variants are possible. More...
Public Member Functions | |
buttonDown (ButtonHandle button) | |
Records that the indicated button has been depressed. More... | |
buttonDown (ButtonHandle button, double time) | |
Records that the indicated button has been depressed. More... | |
buttonResumeDown (ButtonHandle button) | |
Records that the indicated button was depressed earlier, and we only just detected the event after the fact. This is mainly useful for tracking the state of modifier keys. More... | |
buttonResumeDown (ButtonHandle button, double time) | |
Records that the indicated button was depressed earlier, and we only just detected the event after the fact. This is mainly useful for tracking the state of modifier keys. More... | |
buttonUp (ButtonHandle button) | |
Records that the indicated button has been released. More... | |
buttonUp (ButtonHandle button, double time) | |
Records that the indicated button has been released. More... | |
candidate (str candidate_string, size_t highlight_start, size_t highlight_end, size_t cursor_pos) | |
Records that the indicated candidate string has been highlighted. This is used to implement IME support for typing in international languages, especially Chinese/Japanese/Korean. More... | |
focusLost () | |
This should be called when the window focus is lost, so that we may miss upcoming button events (especially "up" events) for the next period of time. It generates keyboard and mouse "up" events for those buttons that we previously sent unpaired "down" events, so that the Panda application will believe all buttons are now released. More... | |
focusLost (double time) | |
This should be called when the window focus is lost, so that we may miss upcoming button events (especially "up" events) for the next period of time. It generates keyboard and mouse "up" events for those buttons that we previously sent unpaired "down" events, so that the Panda application will believe all buttons are now released. More... | |
keystroke (int keycode) | |
Records that the indicated keystroke has been generated. More... | |
keystroke (int keycode, double time) | |
Records that the indicated keystroke has been generated. More... | |
rawButtonDown (ButtonHandle button) | |
Records that the indicated button has been depressed. More... | |
rawButtonDown (ButtonHandle button, double time) | |
Records that the indicated button has been depressed. More... | |
rawButtonUp (ButtonHandle button) | |
Records that the indicated button has been released. More... | |
rawButtonUp (ButtonHandle button, double time) | |
Records that the indicated button has been released. More... | |
setPointer (bool inwin, double x, double y, double time) | |
Records that a mouse movement has taken place. More... | |
setPointerInWindow (double x, double y) | |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is within the window, at the given pixel coordinates. More... | |
setPointerInWindow (double x, double y, double time) | |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is within the window, at the given pixel coordinates. More... | |
setPointerOutOfWindow () | |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is no longer within the window. More... | |
setPointerOutOfWindow (double time) | |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is no longer within the window. More... | |
This is a structure representing a single input device that may be associated with a window. Typically this will be a keyboard/mouse pair, and there will be exactly one of these associated with each window, but other variants are possible.
buttonDown | ( | ButtonHandle | button | ) |
Records that the indicated button has been depressed.
buttonDown | ( | ButtonHandle | button, |
double | time | ||
) |
Records that the indicated button has been depressed.
buttonResumeDown | ( | ButtonHandle | button | ) |
Records that the indicated button was depressed earlier, and we only just detected the event after the fact. This is mainly useful for tracking the state of modifier keys.
buttonResumeDown | ( | ButtonHandle | button, |
double | time | ||
) |
Records that the indicated button was depressed earlier, and we only just detected the event after the fact. This is mainly useful for tracking the state of modifier keys.
buttonUp | ( | ButtonHandle | button | ) |
Records that the indicated button has been released.
buttonUp | ( | ButtonHandle | button, |
double | time | ||
) |
Records that the indicated button has been released.
candidate | ( | str | candidate_string, |
size_t | highlight_start, | ||
size_t | highlight_end, | ||
size_t | cursor_pos | ||
) |
Records that the indicated candidate string has been highlighted. This is used to implement IME support for typing in international languages, especially Chinese/Japanese/Korean.
focusLost | ( | ) |
This should be called when the window focus is lost, so that we may miss upcoming button events (especially "up" events) for the next period of time. It generates keyboard and mouse "up" events for those buttons that we previously sent unpaired "down" events, so that the Panda application will believe all buttons are now released.
focusLost | ( | double | time | ) |
This should be called when the window focus is lost, so that we may miss upcoming button events (especially "up" events) for the next period of time. It generates keyboard and mouse "up" events for those buttons that we previously sent unpaired "down" events, so that the Panda application will believe all buttons are now released.
keystroke | ( | int | keycode | ) |
Records that the indicated keystroke has been generated.
keystroke | ( | int | keycode, |
double | time | ||
) |
Records that the indicated keystroke has been generated.
rawButtonDown | ( | ButtonHandle | button | ) |
Records that the indicated button has been depressed.
rawButtonDown | ( | ButtonHandle | button, |
double | time | ||
) |
Records that the indicated button has been depressed.
rawButtonUp | ( | ButtonHandle | button | ) |
Records that the indicated button has been released.
rawButtonUp | ( | ButtonHandle | button, |
double | time | ||
) |
Records that the indicated button has been released.
setPointer | ( | bool | inwin, |
double | x, | ||
double | y, | ||
double | time | ||
) |
Records that a mouse movement has taken place.
setPointerInWindow | ( | double | x, |
double | y | ||
) |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is within the window, at the given pixel coordinates.
setPointerInWindow | ( | double | x, |
double | y, | ||
double | time | ||
) |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is within the window, at the given pixel coordinates.
setPointerOutOfWindow | ( | ) |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is no longer within the window.
setPointerOutOfWindow | ( | double | time | ) |
To be called by a particular kind of GraphicsWindow to indicate that the pointer is no longer within the window.