mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Expose DEVICE_ID_EMULATION constant in InputEvent
This also improves the documentation related to emulated InputEvents.
This commit is contained in:
parent
68ad520da4
commit
6818e50adc
2 changed files with 8 additions and 1 deletions
|
|
@ -132,6 +132,8 @@ void InputEvent::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("xformed_by", "xform", "local_ofs"), &InputEvent::xformed_by, DEFVAL(Vector2()));
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "device"), "set_device", "get_device");
|
||||
|
||||
BIND_CONSTANT(DEVICE_ID_EMULATION);
|
||||
}
|
||||
|
||||
///////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue