X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fbinding.h;h=3354b23bc81152a1bb4d6b133887a23b25c7bf0e;hb=HEAD;hp=a776a64f92dc57f3ae2a588dc4734e9a5f6c4df3;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/ioncore/binding.h b/ioncore/binding.h index a776a64..3354b23 100644 --- a/ioncore/binding.h +++ b/ioncore/binding.h @@ -1,12 +1,9 @@ /* * ion/ioncore/binding.h * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * 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) \