14#ifndef CLIENTDIALDEVICE_H
15#define CLIENTDIALDEVICE_H
30class EXPCL_PANDA_DEVICE ClientDialDevice :
public ClientDevice {
32 INLINE ClientDialDevice(ClientBase *client,
const std::string &device_name);
37 INLINE
void push_dial(
int index,
double offset);
42 void ensure_dial_index(
int index);
53 typedef pvector<DialState> Dials;
61 static void init_type() {
62 ClientDevice::init_type();
64 ClientDevice::get_class_type());
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
double read_dial(int index)
Returns the number of complete revolutions of the dial since the last time read_dial() was called.
bool is_dial_known(int index) const
Returns true if the state of the indicated dial dial is known, or false if we have never heard anythi...
int get_num_dials() const
Returns the number of dial dials known to the ClientDialDevice.
void push_dial(int index, double offset)
Marks that the dial has been offset by the indicated amount.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...