[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
As discovered by Grzegorz, some platforms don't allow the user to specify the
'none' mouse driver (0 in the config file). These are: BeOS, QNX, MacOS X
and Unix.
Any particular reason not to accept it on these platforms too?
I've attached a patch.
--
Eric Botcazou
diff -urp /home/eric/cvs/allegro/src/beos/bmousdrv.c allegro/src/beos/bmousdrv.c
--- /home/eric/cvs/allegro/src/beos/bmousdrv.c Tue Nov 6 16:30:46 2001
+++ allegro/src/beos/bmousdrv.c Sat May 15 11:25:45 2004
@@ -27,6 +27,6 @@
_DRIVER_INFO _mouse_driver_list[] =
{
{MOUSE_BEOS, &mouse_beos, TRUE},
-// {MOUSEDRV_NONE, &mousedrv_none, TRUE},
+ {MOUSEDRV_NONE, &mousedrv_none, TRUE},
{0, NULL, 0}
};
diff -urp /home/eric/cvs/allegro/src/macosx/drivers.m allegro/src/macosx/drivers.m
--- /home/eric/cvs/allegro/src/macosx/drivers.m Thu Oct 23 07:53:13 2003
+++ allegro/src/macosx/drivers.m Sat May 15 11:26:04 2004
@@ -42,6 +42,7 @@ _DRIVER_INFO _timer_driver_list[] =
_DRIVER_INFO _mouse_driver_list[] =
{
{ MOUSE_MACOSX, &mouse_macosx, TRUE },
+ { MOUSEDRV_NONE, &mousedrv_none, TRUE },
{ 0, NULL, 0 }
};
diff -urp /home/eric/cvs/allegro/src/qnx/qdrivers.c allegro/src/qnx/qdrivers.c
--- /home/eric/cvs/allegro/src/qnx/qdrivers.c Sat May 4 00:34:13 2002
+++ allegro/src/qnx/qdrivers.c Sat May 15 11:26:26 2004
@@ -42,6 +42,7 @@ _DRIVER_INFO _timer_driver_list[] =
_DRIVER_INFO _mouse_driver_list[] =
{
{ MOUSE_QNX, &mouse_qnx, TRUE },
+ { MOUSEDRV_NONE, &mousedrv_none, TRUE },
{ 0, NULL, 0 }
};
diff -urp /home/eric/cvs/allegro/src/unix/umouse.c allegro/src/unix/umouse.c
--- /home/eric/cvs/allegro/src/unix/umouse.c Sun May 14 22:17:20 2000
+++ allegro/src/unix/umouse.c Sat May 15 11:27:30 2004
@@ -23,6 +23,7 @@
/* list the available drivers */
_DRIVER_INFO _mouse_driver_list[] =
{
- { 0, NULL, 0 }
+ { MOUSEDRV_NONE, &mousedrv_none, TRUE },
+ { 0, NULL, 0 }
};
diff -urp /home/eric/cvs/allegro/src/x/xmouse.c allegro/src/x/xmouse.c
--- /home/eric/cvs/allegro/src/x/xmouse.c Mon Jul 7 16:58:32 2003
+++ allegro/src/x/xmouse.c Sat May 15 11:27:19 2004
@@ -72,8 +72,9 @@ static MOUSE_DRIVER mouse_xwin =
/* list the available drivers */
_DRIVER_INFO _xwin_mouse_driver_list[] =
{
- { MOUSE_XWINDOWS, &mouse_xwin, TRUE },
- { 0, NULL, 0 }
+ { MOUSE_XWINDOWS, &mouse_xwin, TRUE },
+ { MOUSEDRV_NONE, &mousedrv_none, TRUE },
+ { 0, NULL, 0 }
};