void DrawGamepad(DrawBuffer &db, float opacity) { uint32_t color = colorAlpha(0xc0b080, opacity); uint32_t colorOverlay = colorAlpha(0xFFFFFF, opacity); buttonO.draw(db, color, colorOverlay); buttonX.draw(db, color, colorOverlay); buttonTri.draw(db, color, colorOverlay); buttonSq.draw(db, color, colorOverlay); crossPad.draw(db, color, colorOverlay); buttonSelect.draw(db, color, colorOverlay); buttonStart.draw(db, color, colorOverlay); buttonLShoulder.draw(db, color, colorOverlay); buttonRShoulder.draw(db, color, colorOverlay); if (g_Config.iFpsLimit) buttonVPS.draw(db, color, colorOverlay); else buttonTurbo.draw(db, color, colorOverlay); #if defined(__SYMBIAN32__) || defined(IOS) || defined(MEEGO_EDITION_HARMATTAN) buttonPause.draw(db, color, colorOverlay); #endif if (g_Config.bShowAnalogStick) leftStick.draw(db, color); }
void DrawGamepad(DrawBuffer &db) { uint32_t color = 0xa0c0b080; uint32_t colorOverlay = 0xa0FFFFFF; buttonO.draw(db, color, colorOverlay); buttonX.draw(db, color, colorOverlay); buttonTri.draw(db, color, colorOverlay); buttonSq.draw(db, color, colorOverlay); crossPad.draw(db, color, colorOverlay); buttonSelect.draw(db, color, colorOverlay); buttonStart.draw(db, color, colorOverlay); buttonLShoulder.draw(db, color, colorOverlay); buttonRShoulder.draw(db, color, colorOverlay); #if defined(__SYMBIAN32__) || defined(IOS) buttonPause.draw(db, color, colorOverlay); #endif if (g_Config.bShowAnalogStick) leftStick.draw(db, color); }