obsoleting tables for internal names

This commit is contained in:
Jess Lovelace
2022-01-31 16:14:36 -05:00
parent 9abd72264f
commit 5398143f42
12 changed files with 39 additions and 39 deletions

View File

@@ -208,7 +208,7 @@ mouse_get_name(int mouse)
char *
mouse_get_internal_name(int mouse)
{
return((char *)mouse_devices[mouse].internal_name);
return((char *)mouse_devices[mouse].device->internal_name);
}
@@ -217,8 +217,8 @@ mouse_get_from_internal_name(char *s)
{
int c = 0;
while (mouse_devices[c].internal_name != NULL) {
if (! strcmp((char *)mouse_devices[c].internal_name, s))
while (mouse_devices[c].device->internal_name != NULL) {
if (! strcmp((char *)mouse_devices[c].device->internal_name, s))
return(c);
c++;
}