18
18
* Lesser General Public License for more details.
20
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this library; if not, write to the
22
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
* Boston, MA 02111-1307, USA.
21
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
26
26
#ifdef HAVE_CONFIG_H
769
* clutter_input_device_get_device_type:
770
* @device: a #ClutterInputDevice
772
* Retrieves the type of @device
774
* Return value: the type of the device
778
ClutterInputDeviceType
779
clutter_input_device_get_device_type (ClutterInputDevice *device)
781
g_return_val_if_fail (device != NULL, CLUTTER_POINTER_DEVICE);
783
return device->device_type;
787
* clutter_input_device_get_device_id:
788
* @device: a #ClutterInputDevice
790
* Retrieves the unique identifier of @device
792
* Return value: the identifier of the device
797
clutter_input_device_get_device_id (ClutterInputDevice *device)
799
g_return_val_if_fail (device != NULL, -1);
769
* clutter_get_current_event:
771
* If an event is currently being processed, return that event.
772
* This function is intended to be used to access event state
773
* that might not be exposed by higher-level widgets. For
774
* example, to get the key modifier state from a Button 'clicked'
777
* Return value: (transfer none): The current ClutterEvent, or %NULL if none
781
G_CONST_RETURN ClutterEvent *
782
clutter_get_current_event (void)
784
ClutterMainContext *context = _clutter_context_get_default ();
786
g_return_val_if_fail (context != NULL, NULL);
788
return context->current_event;