Key to swap buttons: reduced choices to Ctrl (default) and Alt

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1692 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2011-01-22 19:02:28 +00:00
parent 7ef353e8fd
commit 14a859f711
4 changed files with 4 additions and 18 deletions

View File

@ -764,10 +764,8 @@ const T_Lookup Lookup_MouseSpeed[] = {
const T_Lookup Lookup_SwapButtons[] = {
{"None",0},
{"Shift",MOD_SHIFT},
{"Control",MOD_CTRL},
{"Alt",MOD_ALT},
{"Meta",MOD_META},
{NULL,-1},
};

View File

@ -923,17 +923,11 @@ int Load_INI(T_Config * conf)
switch(values[0])
{
case 1:
conf->Swap_buttons=MOD_SHIFT;
break;
case 2:
conf->Swap_buttons=MOD_CTRL;
break;
case 3:
case 2:
conf->Swap_buttons=MOD_ALT;
break;
case 4:
conf->Swap_buttons=MOD_META;
break;
}
}

View File

@ -683,17 +683,11 @@ int Save_INI(T_Config * conf)
switch(conf->Swap_buttons)
{
case MOD_SHIFT:
case MOD_CTRL:
values[0]=1;
break;
case MOD_CTRL:
values[0]=2;
break;
case MOD_ALT:
values[0]=3;
break;
case MOD_META:
values[0]=4;
values[0]=2;
break;
default:
values[0]=0;

View File

@ -358,7 +358,7 @@ typedef struct
byte Right_click_colorpick; ///< Boolean, true to enable a "tablet" mode, where RMB acts as instant colorpicker
byte Sync_views; ///< Boolean, true when the Main and Spare should share their viewport settings.
byte Stylus_mode; ///< Boolean, true to tweak some tools (eg:Curve) for single-button stylus.
word Swap_buttons; ///< Sets which key swaps mouse buttons : 0=none, or MOD_SHIFT, MOD_CTRL, MOD_ALT, MOD_META.
word Swap_buttons; ///< Sets which key swaps mouse buttons : 0=none, or MOD_CTRL, or MOD_ALT.
} T_Config;
// Structures utilisées pour les descriptions de pages et de liste de pages.