mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
event: Fix ButtonEvent docstring
This commit is contained in:
parent
13db762a33
commit
ea61e53ab2
@ -46,17 +46,18 @@ class DatagramIterator;
|
|||||||
class EXPCL_PANDA_EVENT ButtonEvent {
|
class EXPCL_PANDA_EVENT ButtonEvent {
|
||||||
public:
|
public:
|
||||||
enum Type {
|
enum Type {
|
||||||
/*
|
// T_down is sent when a button was just pressed.
|
||||||
* T_down and T_up represent a button changing state correspondingly.
|
|
||||||
* T_resume_down is a special event that is only thrown when focus is returned
|
|
||||||
* to a window and a button is detected as being held down at that point; it
|
|
||||||
* indicates that the button should be considered down now (if it wasn't
|
|
||||||
* already), but it didn't just get pressed down at this moment, it was
|
|
||||||
* depressed some time ago. It's mainly used for correct tracking of modifier
|
|
||||||
* keys like shift and control, and can be ignored for other keys.
|
|
||||||
*/
|
|
||||||
T_down,
|
T_down,
|
||||||
|
|
||||||
|
// T_resume_down is a special event that is only thrown when focus is
|
||||||
|
// returned to a window and a button is detected as being held down at that
|
||||||
|
// point; it indicates that the button should be considered down now (if it
|
||||||
|
// wasn't already), but it didn't just get pressed down at this moment, it
|
||||||
|
// was depressed some time ago. It's mainly used for correct tracking of
|
||||||
|
// modifier keys like shift and control, and can be ignored for other keys.
|
||||||
T_resume_down,
|
T_resume_down,
|
||||||
|
|
||||||
|
// T_down is sent when a button is released.
|
||||||
T_up,
|
T_up,
|
||||||
|
|
||||||
// T_repeat is sent for each a keyrepeat event generated by the system,
|
// T_repeat is sent for each a keyrepeat event generated by the system,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user