Converted the odd double spaces into 4 space tabs
This commit is contained in:
parent
62fa02baf8
commit
39eb9e3342
@ -76,7 +76,7 @@ struct touchscreen {
|
|||||||
* interspersed
|
* interspersed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We'll put these values in and that should
|
* We'll put these values in and that should
|
||||||
* allow the code to at least compile when there is
|
* allow the code to at least compile when there is
|
||||||
* no support. The JS open routine should error out
|
* no support. The JS open routine should error out
|
||||||
@ -84,19 +84,19 @@ struct touchscreen {
|
|||||||
* the application doesn't use a joystick we'll be fine.
|
* the application doesn't use a joystick we'll be fine.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct JS_DATA_TYPE
|
struct JS_DATA_TYPE
|
||||||
{
|
{
|
||||||
int buttons;
|
int buttons;
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
};
|
};
|
||||||
|
|
||||||
# define JS_RETURN (sizeof(struct JS_DATA_TYPE))
|
#define JS_RETURN (sizeof(struct JS_DATA_TYPE))
|
||||||
|
|
||||||
/* XXX It might be better to poll the operating system for the numbers of buttons and
|
/* XXX It might be better to poll the operating system for the numbers of buttons and
|
||||||
* XXX axes and then dynamically allocate the arrays.
|
* XXX axes and then dynamically allocate the arrays.
|
||||||
*/
|
*/
|
||||||
# define _JS_MAX_AXES 16
|
#define _JS_MAX_AXES 16
|
||||||
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
|
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
|
||||||
struct tagSFG_PlatformJoystick
|
struct tagSFG_PlatformJoystick
|
||||||
{
|
{
|
||||||
|
@ -442,17 +442,17 @@ void fgPlatformProcessSingleEvent ( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
case NAVIGATOR_EXIT:
|
case NAVIGATOR_EXIT:
|
||||||
|
{
|
||||||
LOGI("fgPlatformProcessSingleEvent: NAVIGATOR_EXIT");
|
LOGI("fgPlatformProcessSingleEvent: NAVIGATOR_EXIT");
|
||||||
/* User closed the application for good, let's kill the window */
|
/* User closed the application for good, let's kill the window */
|
||||||
{
|
|
||||||
SFG_Window* window = fgStructure.CurrentWindow;
|
SFG_Window* window = fgStructure.CurrentWindow;
|
||||||
if (window != NULL) {
|
if (window != NULL) {
|
||||||
fgDestroyWindow(window);
|
fgDestroyWindow(window);
|
||||||
} else {
|
} else {
|
||||||
LOGW("NAVIGATOR_EXIT: No current window");
|
LOGW("NAVIGATOR_EXIT: No current window");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case NAVIGATOR_SWIPE_DOWN:
|
case NAVIGATOR_SWIPE_DOWN:
|
||||||
case NAVIGATOR_BACK:
|
case NAVIGATOR_BACK:
|
||||||
|
@ -85,6 +85,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
|
|||||||
case GLUT_WINDOW_HEIGHT:
|
case GLUT_WINDOW_HEIGHT:
|
||||||
return size[1];
|
return size[1];
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case GLUT_WINDOW_COLORMAP_SIZE:
|
case GLUT_WINDOW_COLORMAP_SIZE:
|
||||||
|
@ -166,6 +166,7 @@ void fgPlatformHideWindow( SFG_Window *window )
|
|||||||
*/
|
*/
|
||||||
void fgPlatformIconifyWindow( SFG_Window *window )
|
void fgPlatformIconifyWindow( SFG_Window *window )
|
||||||
{
|
{
|
||||||
|
//XXX This is possible via Cascades, but can't seem to find a C-level API
|
||||||
fprintf(stderr, "fgPlatformGlutIconifyWindow: STUB\n");
|
fprintf(stderr, "fgPlatformGlutIconifyWindow: STUB\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,7 +183,8 @@ void fgPlatformGlutSetWindowTitle( const char* title )
|
|||||||
*/
|
*/
|
||||||
void fgPlatformGlutSetIconTitle( const char* title )
|
void fgPlatformGlutSetIconTitle( const char* title )
|
||||||
{
|
{
|
||||||
fprintf(stderr, "fgPlatformGlutSetIconTitle: STUB\n");}
|
fprintf(stderr, "fgPlatformGlutSetIconTitle: STUB\n");
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Change the specified window's position
|
* Change the specified window's position
|
||||||
|
Reference in New Issue
Block a user