$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <libosso.h>
#include <SDL.h>
#include "stratagus.h"
#include "version.h"
#include "game.h"
maemo.cpp - Maemo platform code. | |
static osso_context_t * | osso = NULL |
static SDL_TimerID | timer = NULL |
static Uint32 | OssoKeepBacklightAlive (Uint32 interval, void *) |
static void | OssoInitialize (void) |
static void | OssoDeinitialize (void) |
void | maemo_init (void) |
void maemo_init | ( | void | ) |
Main function which initialize Maemo platform code
static void OssoDeinitialize | ( | void | ) | [static] |
Deinitialize OSSO context and remove registred SDL timer
static void OssoInitialize | ( | void | ) | [static] |
Initialize OSSO context, needed for calling OSSO functions. Create SDL timer for calling OssoKeepBacklightAlive every 50s.
static Uint32 OssoKeepBacklightAlive | ( | Uint32 | interval, | |
void * | ||||
) | [static] |
Callback function for SDL_AddTimer. Tell OSSO to keep display on and prevent suspending device for 60s.
osso_context_t* osso = NULL [static] |
SDL_TimerID timer = NULL [static] |