Ignore:
Timestamp:
Aug 20, 2011, 11:28:53 PM (10 years ago)
Author:
sam
Message:

ps3: add a build-ps3 script that uses autoconf and automake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdlinput.cpp

    r781 r840  
    1313#endif
    1414
    15 #include <SDL.h>
     15#if defined USE_SDL
     16#   include <SDL.h>
     17#endif
    1618
    1719#include "core.h"
     
    4042  : data(new SdlInputData())
    4143{
     44#if defined USE_SDL
    4245    SDL_Init(SDL_INIT_TIMER);
    4346
    4447    gamegroup = GAMEGROUP_BEFORE;
     48#endif
    4549}
    4650
    4751void SdlInput::TickGame(float deltams)
    4852{
     53#if defined USE_SDL
    4954    Entity::TickGame(deltams);
    5055
     
    8994            Input::KeyPressed(i, deltams);
    9095#endif
     96#endif
    9197}
    9298
     
    100106    vec2i ret(-1, -1);
    101107
     108#if defined USE_SDL
    102109    if (SDL_GetAppState() & SDL_APPMOUSEFOCUS)
    103110    {
     
    105112        ret.y = Video::GetSize().y - 1 - ret.y;
    106113    }
     114#endif
    107115    return ret;
    108116}
Note: See TracChangeset for help on using the changeset viewer.