/* * libbrlapi - A library providing access to braille terminals for applications. * * Copyright (C) 2002-2019 by * Samuel Thibault * Sébastien Hinderer * * libbrlapi comes with ABSOLUTELY NO WARRANTY. * * This is free software, placed 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. Please see the file LICENSE-LGPL for details. * * Web Page: http://brltty.app/ * * This software is maintained by Dave Mielke . */ #ifndef BRLAPI_INCLUDED_CONSTANTS #define BRLAPI_INCLUDED_CONSTANTS #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** \file */ /** \ingroup brlapi_keycodes * @{ */ /** Helper macro to easily produce braille patterns */ #define BRLAPI_DOTS(dot1, dot2, dot3, dot4, dot5, dot6, dot7, dot8) (\ ((dot1)? BRLAPI_DOT1: 0) | \ ((dot2)? BRLAPI_DOT2: 0) | \ ((dot3)? BRLAPI_DOT3: 0) | \ ((dot4)? BRLAPI_DOT4: 0) | \ ((dot5)? BRLAPI_DOT5: 0) | \ ((dot6)? BRLAPI_DOT6: 0) | \ ((dot7)? BRLAPI_DOT7: 0) | \ ((dot8)? BRLAPI_DOT8: 0) \ ) /** space key */ #define BRLAPI_DOT_CHORD 0 /** @} */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* BRLAPI_INCLUDED_CONSTANTS */