1 /****************************************************************************
3 * Copyright (C) 2005 - 2013 by Vivante Corp.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the license, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *****************************************************************************/
22 #ifndef __gc_hal_eglplatform_type_h_
23 #define __gc_hal_eglplatform_type_h_
29 /*******************************************************************************
30 ** Events. *********************************************************************
33 typedef enum _halEventType
38 /* Mouse move event. */
41 /* Mouse button event. */
44 /* Application close event. */
47 /* Application window has been updated. */
52 /* Scancodes for keyboard. */
63 HAL_SINGLEQUOTE = 0x27,
64 HAL_PAD_ASTERISK = 0x2A,
110 HAL_BACKQUOTE = 0x60,
171 /* Structure that defined keyboard mapping. */
172 typedef struct _halKeyMap
182 /* Event structure. */
183 typedef struct _halEvent
188 /* Event data union. */
191 /* Event data for keyboard. */
197 /* ASCII characte of the key pressed. */
200 /* Flag whether the key was pressed (1) or released (0). */
205 /* Event data for pointer. */
208 /* Current pointer coordinate. */
214 /* Event data for mouse buttons. */
217 /* Left button state. */
220 /* Middle button state. */
223 /* Right button state. */
226 /* Current pointer coordinate. */
236 /* VFK_DISPLAY_INFO structure defining information returned by
237 vdkGetDisplayInfoEx. */
238 typedef struct _halDISPLAY_INFO
240 /* The size of the display in pixels. */
244 /* The stride of the dispay. -1 is returned if the stride is not known
245 ** for the specified display.*/
248 /* The color depth of the display in bits per pixel. */
251 /* The logical pointer to the display memory buffer. NULL is returned
252 ** if the pointer is not known for the specified display. */
255 /* The physical address of the display memory buffer. ~0 is returned
256 ** if the address is not known for the specified display. */
257 unsigned long physical;
259 int wrapFB; /* true if compositor, false otherwise. */
262 /* 355_FB_MULTI_BUFFER */
267 /* The color info of the display. */
268 unsigned int alphaLength;
269 unsigned int alphaOffset;
270 unsigned int redLength;
271 unsigned int redOffset;
272 unsigned int greenLength;
273 unsigned int greenOffset;
274 unsigned int blueLength;
275 unsigned int blueOffset;
277 /* Display flip support. */
286 #endif /* __gc_hal_eglplatform_type_h_ */