Fixed mouse type check in Windows configuration dialogue
This commit is contained in:
parent
fb3d3d594b
commit
836fe18aeb
1 changed files with 3 additions and 3 deletions
|
|
@ -26,11 +26,11 @@ static int settings_mouse_to_list[20], settings_list_to_mouse[20];
|
||||||
|
|
||||||
static int mouse_valid(int type, int model)
|
static int mouse_valid(int type, int model)
|
||||||
{
|
{
|
||||||
if (type == MOUSE_TYPE_PS2 && !(models[model].flags & MODEL_PS2))
|
if ((type & MOUSE_TYPE_IF_MASK) == MOUSE_TYPE_PS2 && !(models[model].flags & MODEL_PS2))
|
||||||
return 0;
|
return 0;
|
||||||
if (type == MOUSE_TYPE_AMSTRAD && !(models[model].flags & MODEL_AMSTRAD))
|
if ((type & MOUSE_TYPE_IF_MASK) == MOUSE_TYPE_AMSTRAD && !(models[model].flags & MODEL_AMSTRAD))
|
||||||
return 0;
|
return 0;
|
||||||
if (type == MOUSE_TYPE_OLIM24 && !(models[model].flags & MODEL_OLIM24))
|
if ((type & MOUSE_TYPE_IF_MASK) == MOUSE_TYPE_OLIM24 && !(models[model].flags & MODEL_OLIM24))
|
||||||
return 0;
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue