mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
InputDevice::
|
||||
InputDevice(const InputDevice ©) {
|
||||
nassertv(false);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void InputDevice::
|
||||
operator = (const InputDevice ©) {
|
||||
nassertv(false);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -165,9 +165,9 @@ protected:
|
||||
|
||||
public:
|
||||
InputDevice();
|
||||
InputDevice(const InputDevice ©);
|
||||
void operator = (const InputDevice ©);
|
||||
~InputDevice();
|
||||
InputDevice(const InputDevice ©) = delete;
|
||||
InputDevice &operator = (const InputDevice ©) = delete;
|
||||
virtual ~InputDevice();
|
||||
|
||||
INLINE std::string get_name() 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::
|
||||
GraphicsWindowInputDevice(const GraphicsWindowInputDevice ©) {
|
||||
*this = copy;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void GraphicsWindowInputDevice::
|
||||
operator = (const GraphicsWindowInputDevice ©) {
|
||||
InputDevice::operator = (copy);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
GraphicsWindowInputDevice::
|
||||
~GraphicsWindowInputDevice() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
||||
INLINE GraphicsWindowInputDevice();
|
||||
GraphicsWindowInputDevice(const GraphicsWindowInputDevice ©);
|
||||
void operator = (const GraphicsWindowInputDevice ©);
|
||||
~GraphicsWindowInputDevice();
|
||||
|
||||
PUBLISHED:
|
||||
// The following interface is for the various kinds of GraphicsWindows to
|
||||
|
Loading…
x
Reference in New Issue
Block a user