add support for Button6 and Button7

This commit is contained in:
Julien Danjou 2008-01-16 20:53:46 +01:00
parent 7c122e00ac
commit 0c3ac0468a
1 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,14 @@
#define AWESOME_CONFIG_FILE ".awesomerc" #define AWESOME_CONFIG_FILE ".awesomerc"
/* Permit to use mouse with many more buttons */
#ifndef Button6
#define Button6 6
#endif
#ifndef Button7
#define Button7 7
#endif
extern AwesomeConf globalconf; extern AwesomeConf globalconf;
/** Link a name to a key symbol */ /** Link a name to a key symbol */
@ -122,6 +130,8 @@ mouse_button_lookup(const char *button)
{"3", Button3}, {"3", Button3},
{"4", Button4}, {"4", Button4},
{"5", Button5}, {"5", Button5},
{"6", Button6},
{"7", Button7},
{NULL, 0} {NULL, 0}
}; };
int i; int i;