Issue 400:Button for changing stylus click into right click behavior. Done with actual keyboard keys, now to do joystick buttons

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1691 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-01-22 17:15:17 +00:00
parent eebf3784c3
commit 7ef353e8fd
6 changed files with 205 additions and 82 deletions

View File

@@ -916,6 +916,29 @@ int Load_INI(T_Config * conf)
conf->Sync_views=(values[0]!=0);
}
conf->Swap_buttons=0;
// Optional, key for swap buttons (>=2.3)
if (!Load_INI_get_values (file,buffer,"Swap_buttons",1,values))
{
switch(values[0])
{
case 1:
conf->Swap_buttons=MOD_SHIFT;
break;
case 2:
conf->Swap_buttons=MOD_CTRL;
break;
case 3:
conf->Swap_buttons=MOD_ALT;
break;
case 4:
conf->Swap_buttons=MOD_META;
break;
}
}
// Insert new values here
fclose(file);