f4508be4ab
Use clutter_event_set_device() instead of setting the device field. Also, use G_N_ELEMENTS() to determine the size of the key symbols mapping array.