14#ifndef GRAPHICSWINDOWINPUTDEVICE_H
15#define GRAPHICSWINDOWINPUTDEVICE_H
28class EXPCL_PANDA_DISPLAY GraphicsWindowInputDevice :
public InputDevice {
30 GraphicsWindowInputDevice(
GraphicsWindow *host,
const std::string &name,
31 bool pointer,
bool keyboard);
34 static PT(GraphicsWindowInputDevice) pointer_only(
GraphicsWindow *host,
const std::string &name);
35 static PT(GraphicsWindowInputDevice) keyboard_only(
GraphicsWindow *host,
const std::string &name);
36 static PT(GraphicsWindowInputDevice) pointer_and_keyboard(
GraphicsWindow *host,
const std::string &name);
38 GraphicsWindowInputDevice() =
default;
48 void candidate(
const std::wstring &candidate_string,
size_t highlight_start,
49 size_t highlight_end,
size_t cursor_pos);
64 typedef pset<ButtonHandle> ButtonsHeld;
65 ButtonsHeld _buttons_held;
71 static void init_type() {
72 InputDevice::init_type();
74 InputDevice::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
static ClockObject * get_global_clock()
Returns a pointer to the global ClockObject.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the Graphi...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...