_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

maemo.cpp File Reference
#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)
 

Function Documentation

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.

Variable Documentation

osso_context_t* osso = NULL
static
SDL_TimerID timer = NULL
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.