Commit graph

126 commits

Author SHA1 Message Date
Henrik Rydgard
c3fffa291b Update uistate hackery. Need to get rid of this from PCMain.cpp... 2014-06-22 10:34:22 +02:00
Sacha
efd2cb0f61 Fix SDL Joystick. 2014-06-08 00:55:51 +10:00
Sacha
ad57c49429 SDL: Enable up to 2 joysticks for everyone. 2014-05-31 01:29:00 +10:00
Sacha
935165ca69 SDL: Make the code more platform-agnostic and cleaner. 2014-05-31 01:21:43 +10:00
Sacha
522e1c1c84 Fix GLES2 SDL builds. 2014-05-29 12:12:50 +10:00
Henrik Rydgård
3866998e10 Apply patch from gschwind that lets us accept more audio formats
(although I'm not sure which ones would apply...)
2014-05-04 12:33:28 +02:00
Henrik Rydgård
eacdc58b48 Merge pull request #209 from thedax/sdlFullscreenFix
SDL: Fix fullscreen resizing.
2014-05-04 11:26:23 +02:00
The Dax
83f80c427b SDL: Let the window be resizable on platforms it makes sense on. 2014-05-02 18:15:37 -04:00
The Dax
8ada7de18a Fix fullscreen resizing. It wasn't working properly. 2014-05-02 17:46:24 -04:00
Henrik Rydgård
3c13a90099 SDL: Add flag for portrait mode 2014-04-13 17:09:49 +02:00
Henrik Rydgård
b914c1a1fd Easy way to mimic an ipad by windows size 2014-04-08 15:27:14 +02:00
Henrik Rydgård
6f6c81ce19 Need to check the quit flag here too 2014-02-12 12:45:49 +01:00
Henrik Rydgard
52a7af1ed3 Fix some build errors due to a removed variable 2014-02-10 15:12:55 +01:00
Henrik Rydgard
93d39b34ff Add the few extra lines required to init gl on Raspberry Pi.
Still needs work in the build system to set this define.
2014-02-09 23:31:31 +01:00
Henrik Rydgård
48b4745e73 Some cleanup, make really sure we don't use AudioTrack on Gingerbread+. 2014-02-07 14:18:45 +01:00
Henrik Rydgård
4a743ca627 SDL: Add way to exit cleanly through a message. Warning fix. 2014-02-07 11:33:31 +01:00
Henrik Rydgard
790c70f3fb Center SDL window when possible 2014-02-05 19:44:43 +01:00
Henrik Rydgard
841f04d369 For some reason, need to disable the SDL joystick code to build PCMain on windows 2014-02-05 14:46:21 +01:00
Thiago Kenji Okada
14e32915b2 I forget how C works after using Python... 2014-01-30 14:33:48 -02:00
Thiago Kenji Okada
a313321893 Add fallback in case of xdg-utils is not installed
Some distributions may not install xdg-utils by default,
so inform the user in case of xdg-utils is not installed
when the user tries to use any of the xdg-utils commands.
2014-01-30 14:23:04 -02:00
Henrik Rydgård
25bbd8fbd1 Link backtrace.cpp on Android too for consistency. Use it in FLOG. 2014-01-23 14:31:56 +01:00
Henrik Rydgård
ca90b79bf8 Fix Android input box function. Add dpi to command line options in PCMain. 2014-01-21 15:57:15 +01:00
Henrik Rydgård
73f612aaa8 SDL: Add preliminary fullscreen toggle support. Does not seem to work very well on Mac. 2014-01-03 15:15:35 +01:00
Henrik Rydgard
69fd1d6594 Fix USING_GLES2 + SDL builds, if we ever have any 2014-01-02 00:29:34 +01:00
Henrik Rydgård
9201587961 PCMain.cpp: Allow forcing pixel resolution on the command line.
Small optimization in gfx_es2
2013-12-16 14:06:24 +01:00
Henrik Rydgård
8166e7a094 Let apps specify that they want portrait on startup again 2013-12-13 12:49:38 +01:00
Henrik Rydgård
a83ac35141 Restore functionality of "legacy key maps" in SDL.
For non-PPSSPP prototyping purposes.
2013-12-13 12:17:46 +01:00
Henrik Rydgård
e015a7caad PCMain.cpp: #ifdef away PPSSPP-isms (yeah, this is ugly and needs cleanup) 2013-12-13 11:04:11 +01:00
Sacha
9e5df6028a Add InputBox as a platform-specific system function instead of a host function. Enable it on all Qt platforms. 2013-12-08 20:15:09 +10:00
Henrik Rydgard
563e005101 Android: Allow sending generic string messages out to Java.
Implement stubs for other platforms.
2013-12-04 17:38:37 +01:00
Sacha
17ddae23cc Qt: Prepare for desktop UI to use embedded mobile UI. 2013-11-27 01:30:28 +10:00
Sacha
3bb995319b SDL/Qt: Cleanup. 2013-11-26 16:38:00 +10:00
Bigpet
ddb9934dce actually not deleting the joystick in the runloop anymore 2013-11-24 06:27:43 +01:00
Henrik Rydgård
127d4b2d20 SDL buildfixing 2013-11-22 13:19:32 +01:00
Peter Tissen
3b076b41a9 refactored SDL joystick into seperate file 2013-11-22 02:00:35 +01:00
Sacha
c2b558e881 SDL: Hide cursor when fullscreen during game without touch controls. Also remove redundant headers. 2013-11-05 12:58:47 +10:00
Sacha
c00a47c892 Code cleanup. Rearrange code in logical order. Increase Symbian vibration.
Pandora runfast was redundant (exists in math_util). Also it is VFPv3 not VFPv2.
2013-11-04 23:49:48 +10:00
Henrik Rydgård
045c24d064 SDL: Add support for hat motion events. Y axis may be inverted, not sure. 2013-11-01 22:15:08 +01:00
Thiago Kenji Okada
64e9c2088f Change string manipulation to C++ string class
std::string seems to be the preferred method since you don't need to alloc
more memory then you need (the Class automagically allocates the necessary
RAM) and there is no chance of buffer overflow. But since I don't have Mac
OSX, I didn't test it (it should work, since this is standard C++).

Add Mac OSX support to Launcher{Market,Email} too and changed Linux to use
"xdg-email " instead "xdg-open mailto:" since this seems the preferred method.
2013-11-01 15:09:36 -02:00
Henrik Rydgård
4c8922d9e7 Add support for launching URLs on MacOSX 2013-10-31 17:46:59 +01:00
Thiago Kenji Okada
a8fbcb6165 Add Launch{Browser,Market,Email} support on Linux
Modern Linux desktop should implement a xdg-open program, that should open an
URL on the default desktop program.

The documentation of xdg-open says that we should supply xdg-open script on
our installation script for fallback purposes, but I don't think this is
really necessary: anyone using a reasonable recently DE on Linux should have
xdg-utils installed.
2013-10-30 19:48:12 -02:00
Henrik Rydgård
398137422c SDL: Choose a reasonable default window size for windowed mode (2x PSP) 2013-10-30 12:22:22 +01:00
Sacha
6640b7b7ad SDL: Detect resolution automatically. Use --fullscreen switch to enable fullscreen. 2013-10-30 13:05:17 +10:00
Sacha
60f1d1e3cb Clean up of unused or redundant code and comments. 2013-10-29 11:24:10 +10:00
Sacha
6986edb978 Audio: Best settings on all platforms.
After numerous tests, I have found the perfect audio settings. It seems samples now needs to be 2048 for everyone. Buffer needs to be 8192. Anything else gets a patchy noise. None of these platforms were using the right audio settings. Qt and SDL now sound perfect but Blackberry still doesn't (OpenAL thing?).
2013-10-22 13:29:34 +10:00
Nassim "Nass" Eddequiouaq
0b1f4ad3c9 Fix: SDL not finding a ddevice doesn’t stop the program anymore. 2013-10-07 03:42:42 +02:00
Aapo Rantalainen
15d92565d8 Fix: landscape and portrait should be same resolution 2013-09-17 09:49:10 +03:00
Henrik Rydgard
1790bd8b7e Replace System_GetName with System_GetProperty so we can return more info 2013-09-04 11:28:19 +02:00
Henrik Rydgard
b063724c9e Logging bug fix and some warning fixes. 2013-08-27 19:44:05 +02:00
Aapo Rantalainen
74c9731d7c Maemo: *joy was not defined when MAEMO 2013-08-23 11:15:08 +03:00