Retrieves the events device id if set.
a clutter event
A unique identifier for the device or -1 if the event has no specific device set.