Search
lxdream.org :: lxdream/src/display.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.c
changeset 615:38b69ec2f4c8
prev614:a2d239d4438a
next627:c218b062a843
author nkeynes
date Mon Jan 28 11:17:15 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Split axes into positive and negative sides. Works better now
file annotate diff log raw
1.1 --- a/src/display.c Mon Jan 28 02:38:09 2008 +0000
1.2 +++ b/src/display.c Mon Jan 28 11:17:15 2008 +0000
1.3 @@ -113,6 +113,19 @@
1.4 return TRUE;
1.5 }
1.6
1.7 +gboolean input_has_device( const gchar *id )
1.8 +{
1.9 + GList *ptr;
1.10 + for( ptr = input_drivers; ptr != NULL; ptr = g_list_next(ptr) ) {
1.11 + input_driver_entry_t entry = (input_driver_entry_t)ptr->data;
1.12 + if( strcasecmp(entry->driver->id, id) == 0 ) {
1.13 + return TRUE;
1.14 + }
1.15 + }
1.16 + return FALSE;
1.17 +}
1.18 +
1.19 +
1.20 void input_unregister_device( input_driver_t driver )
1.21 {
1.22 GList *ptr;
.