If the event contains a “device” field, this function will return it, else it will return null.
a #GdkDevice, or null.
If the event contains a “device” field, this function will return it, else it will return null.