X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fbinding.h;h=32cc2bebf8a447fac8f4cb213a64406cf44c2609;hp=a776a64f92dc57f3ae2a588dc4734e9a5f6c4df3;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hpb=de22e45179cb3bafa490294d31d47f361047a30a diff --git a/ioncore/binding.h b/ioncore/binding.h index a776a64..32cc2be 100644 --- a/ioncore/binding.h +++ b/ioncore/binding.h @@ -3,10 +3,7 @@ * * Copyright (c) Tuomo Valkonen 1999-2007. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #ifndef ION_IONCORE_BINDING_H @@ -20,12 +17,20 @@ #include -#define BINDING_KEYPRESS 0 -#define BINDING_BUTTONPRESS 1 -#define BINDING_BUTTONMOTION 2 -#define BINDING_BUTTONCLICK 3 -#define BINDING_BUTTONDBLCLICK 4 +enum{ + BINDING_KEYPRESS, + BINDING_BUTTONPRESS, + BINDING_BUTTONMOTION, + BINDING_BUTTONCLICK, + BINDING_BUTTONDBLCLICK, + BINDING_SUBMAP_ENTER, + BINDING_SUBMAP_RELEASEMOD + /*BINDING_SUBMAP_LEAVE*/ +}; +#define BINDING_IS_PSEUDO(A) \ + ((A)==BINDING_SUBMAP_ENTER || (A)==BINDING_SUBMAP_RELEASEMOD) + #define BINDMAP_INIT {0, NULL, NULL, NULL, NULL} #define FOR_ALL_BINDINGS(B, NODE, MAP) \