mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
device: delete InputDevice copy ctor / assign operator
This commit is contained in:
parent
9b85a28861
commit
85752b06f5
@ -37,22 +37,6 @@ InputDevice(const std::string &name, DeviceClass dev_class, int flags) :
|
|||||||
_button_events = new ButtonEventList;
|
_button_events = new ButtonEventList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
InputDevice::
|
|
||||||
InputDevice(const InputDevice ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void InputDevice::
|
|
||||||
operator = (const InputDevice ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -165,9 +165,9 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
InputDevice();
|
InputDevice();
|
||||||
InputDevice(const InputDevice ©);
|
InputDevice(const InputDevice ©) = delete;
|
||||||
void operator = (const InputDevice ©);
|
InputDevice &operator = (const InputDevice ©) = delete;
|
||||||
~InputDevice();
|
virtual ~InputDevice();
|
||||||
|
|
||||||
INLINE std::string get_name() const;
|
INLINE std::string get_name() const;
|
||||||
INLINE std::string get_manufacturer() const;
|
INLINE std::string get_manufacturer() const;
|
||||||
|
@ -62,29 +62,6 @@ pointer_and_keyboard(GraphicsWindow *host, const string &name) {
|
|||||||
GraphicsWindowInputDevice(host, name, IDF_has_pointer | IDF_has_keyboard);
|
GraphicsWindowInputDevice(host, name, IDF_has_pointer | IDF_has_keyboard);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
GraphicsWindowInputDevice::
|
|
||||||
GraphicsWindowInputDevice(const GraphicsWindowInputDevice ©) {
|
|
||||||
*this = copy;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void GraphicsWindowInputDevice::
|
|
||||||
operator = (const GraphicsWindowInputDevice ©) {
|
|
||||||
InputDevice::operator = (copy);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
GraphicsWindowInputDevice::
|
|
||||||
~GraphicsWindowInputDevice() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Records that the indicated button has been depressed.
|
* Records that the indicated button has been depressed.
|
||||||
*/
|
*/
|
||||||
|
@ -35,9 +35,6 @@ public:
|
|||||||
static PT(GraphicsWindowInputDevice) pointer_and_keyboard(GraphicsWindow *host, const std::string &name);
|
static PT(GraphicsWindowInputDevice) pointer_and_keyboard(GraphicsWindow *host, const std::string &name);
|
||||||
|
|
||||||
INLINE GraphicsWindowInputDevice();
|
INLINE GraphicsWindowInputDevice();
|
||||||
GraphicsWindowInputDevice(const GraphicsWindowInputDevice ©);
|
|
||||||
void operator = (const GraphicsWindowInputDevice ©);
|
|
||||||
~GraphicsWindowInputDevice();
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
// The following interface is for the various kinds of GraphicsWindows to
|
// The following interface is for the various kinds of GraphicsWindows to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user