Skip to content

Commit

Permalink
[PYRA] Added Pyra version
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 29, 2020
1 parent eccb8ad commit d3cc0c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ ifeq ($(PANDORA),1)
LDFLAGS= -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
#HAVE_GLES=1
endif
ifeq ($(PYRA),1)
FLAGS= -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard -fsingle-precision-constant
FLAGS+= -DPYRA
FLAGS+= -DARM
LDFLAGS= -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
endif
ifeq ($(ODROID),1)
FLAGS= -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -fsingle-precision-constant -O3 -fsigned-char
FLAGS+= -DODROID
Expand Down
16 changes: 8 additions & 8 deletions StuntCarRacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ static void HandleTrackPreview( CDXUTTextHelper &txtHelper )

txtHelper.SetInsertionPos( 2+(wideScreen?10:0), pd3dsdBackBuffer->Height-15*6 );
txtHelper.DrawTextLine( L"Keyboard controls during game :-" );
#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
txtHelper.DrawTextLine( L" DPad = Steer, (X) = Accelerate, (B) = Brake, (R) = Nitro" );
#else
txtHelper.DrawTextLine( L" S = Steer left, D = Steer right, Enter = Accelerate, Space = Brake" );
Expand Down Expand Up @@ -1892,7 +1892,7 @@ bool process_events()
lastInput |= KEY_P1_RIGHT;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_RCTRL:
#else
case SDLK_SPACE:
Expand All @@ -1902,15 +1902,15 @@ bool process_events()
lastInput |= KEY_P1_BOOST;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_END:
#else
case SDLK_DOWN:
#endif
lastInput |= KEY_P1_BRAKE;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_PAGEDOWN:
#else
case SDLK_UP:
Expand All @@ -1934,7 +1934,7 @@ bool process_events()
lastInput &= ~KEY_P1_RIGHT;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_RCTRL:
#else
case SDLK_SPACE:
Expand All @@ -1944,15 +1944,15 @@ bool process_events()
lastInput &= ~KEY_P1_BOOST;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_END:
#else
case SDLK_DOWN:
#endif
lastInput &= ~KEY_P1_BRAKE;
break;

#ifdef PANDORA
#if defined(PANDORA) || defined(PYRA)
case SDLK_PAGEDOWN:
#else
case SDLK_UP:
Expand Down Expand Up @@ -2070,7 +2070,7 @@ int main(int argc, const char** argv)
SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );

#ifdef PANDORA
#if defined(PANDORA)
int revision = 5;
FILE *f = fopen("/etc/powervr-esrev", "r");
if (f) {
Expand Down

0 comments on commit d3cc0c2

Please sign in to comment.