Commit Graph

239 Commits

Author SHA1 Message Date
Henrik Rydgard
e539c7009f Hook up DX9 backend. Not really working though, it seems. 2014-08-22 20:55:12 +02:00
Henrik Rydgard
92c3775d95 Start hooking up D3D 2014-08-22 20:55:04 +02:00
Henrik Rydgard
808f05da89 (Partially) slip thin3d underneath DrawBuffer. 2014-08-22 20:54:53 +02:00
The Dax
cb07da198b Make the keyboard analog limiter customisable. 2014-08-17 14:36:35 -04:00
The Dax
8a78f5e814 Pause rendering when minimized, when appropriate (hopefully? This is sort of hard to test.). 2014-07-21 10:30:51 +02:00
Henrik Rydgard
49fb0bd65b Set WS_POPUP for fullscreen windows, rumoured to help certain gl drivers do the right thing.
Remove an outdated comment.
2014-07-20 17:28:25 +02:00
Henrik Rydgard
5b597db4b5 De-duplicate updates to axis mapped keys.
Improves mapping an analog stick to the same thing as a dpad, as this reduces
spurious button resets caused by analog stick noise.
2014-07-20 12:52:11 +02:00
Henrik Rydgard
ecacc8784b Make the axis->button mapping code make more sense 2014-07-20 12:42:30 +02:00
Juha Laukkanen
8d34c6bf66 Auto save state load: set current slot to loaded one. 2014-07-17 22:18:45 +08:00
Unknown W. Brackets
408ea88cd6 Fix incorrect state after reset in multithreading.
This would change coreState from CORE_POWERUP too early.  It's already
done in BootDone().
2014-07-06 14:02:45 -07:00
Henrik Rydgard
dc3806b700 Win32: Keep DSound running even when in the menu.
This will make it possible to play the game-selection audio later.
2014-06-22 14:17:57 +02:00
Henrik Rydgard
6ec74ef99e Be consistent about how we read and update the UI state variable 2014-06-22 09:57:01 +02:00
Henrik Rydgard
e3bbf26731 Improve input event handling. Can now map volume keys on Android without issues. 2014-06-15 13:04:59 +02:00
Unknown W. Brackets
063e8508df Support drag-and-drop of savestate files.
Most likely you want to load the state, not see an error message.
2014-06-14 16:13:35 -07:00
mildlysec
c3dfb64839 Added ability to press analog keys lightly using shift button 2014-06-07 22:21:54 +02:00
Unknown W. Brackets
a5e3623742 Skip cpu change when game not running.
Oops, this happened when changing settings.  Fixes #6167.
2014-05-27 23:03:08 -07:00
Unknown W. Brackets
a70b5abfb9 Allow jit to be enabled/disabled at runtime. 2014-05-27 00:02:51 -07:00
Unknown W. Brackets
0a92d377b0 Avoid a race condition during game shutdown.
Hoping this is it.
2014-05-21 01:13:40 -07:00
Unknown W. Brackets
14be491aa8 Don't set pending boot flag on "stop".
And rename to boot pending, not "boot successful."
2014-05-15 22:17:19 -07:00
Unknown W. Brackets
bfa02f8fa1 Fix some spurious resets on stopping a game. 2014-05-11 10:58:33 -07:00
Unknown W. Brackets
6183dadc31 Improve reset (and delay) and boot of another game.
Fixes #6023.
2014-05-04 19:58:36 -07:00
Unknown W. Brackets
63b5ec3d85 Allow specifying a root path for host0:/.
This way, similar to the PSP, we can have a root path outside the test.
2014-04-19 21:43:09 -07:00
Klimis Ioannidis
a758781544 Blacklist GLTools (Chainfire3D-like app for 3.0+) 2014-04-13 23:25:56 +03:00
Unknown W. Brackets
75de50123a Don't need to check inited for PSP_Shutdown() now. 2014-02-14 23:02:29 -08:00
Unknown W. Brackets
ab8a8a61dc Shut down emulation when the game exits.
Fixes #5421.
2014-02-12 08:06:53 -08:00
Henrik Rydgard
984554fe7c Make the UI scale and move correctly when the UI bounds are modified. 2014-02-10 16:08:19 +01:00
Henrik Rydgard
ca9d0ea5cf Remove more bad uses of dp_xres. Fix a data flow issue
(could end up with "feedback" if modifying the screen bounds)
2014-02-10 15:55:21 +01:00
Henrik Rydgard
c6caff61bf Update native with buildfix. Fix some resizing issues. 2014-02-10 15:14:45 +01:00
Henrik Rydgard
4d00a9b4bc Reduce use of display.h (dp_xres, dp_yres) now that uicontext has bounds 2014-02-10 12:44:36 +01:00
Henrik Rydgard
8b6b491820 Remove obsolete outputWidth/outputHeight 2014-02-10 12:44:35 +01:00
Unknown W. Brackets
b46ca9f94b Lock out reporting if harmful settings are used.
Before, if you turned it on, broke stuff, and then turned it off, we
reported the broken stuff.  This could be responsible for various
messages that have seemed strange.
2014-02-09 17:39:16 -08:00
Unknown W. Brackets
7add81fbd2 Use USING_WIN_UI instead of _WIN32 for differences.
Just makes the code clearer and probably helps other UIs work on Windows
more easily.
2014-02-08 16:38:45 -08:00
Unknown W. Brackets
d2108a962e Switch from USING_GLES2 to MOBILE_DEVICE.
Still using USING_GLES2 for, well, GLES2.  But for things that are really
about mobile, we need a new define.  Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Unknown W. Brackets
d820768396 Properly exit error screen when hitting cancel.
Fixes #3351.
2014-01-25 00:40:14 -08:00
Unknown W. Brackets
a73b15b963 In multithreadead, load the game async.
This way if it takes time to load, things aren't frozen while it's doing
that.  This allows us to show any sort of loading animation or etc. we
want.

Before, it might show a odd looking game select screen while loading, and
then finally go to black.  Now it immediately goes to black.

Fixes #2030.
2014-01-19 14:41:01 -08:00
adrian17
c52c2375c0 Removed dead code from UI 2014-01-19 13:51:24 +01:00
zack-vii
26fbb4c32c "Next Slot" control mapping
-added "Next Slot" to control mapping menu
-added VIRTKEY_NEXT_SLOT -> incremented VIRTKEY_TOGGLE_FULLSCREEN
-added SaveState::NextSlot(); as replacement for code in
WndMainWindow
-added entry in EmuScreen using SaveState::NextSlot();
2014-01-07 15:56:04 +01:00
Henrik Rydgard
af8a9bcb5a Remove silly debug log 2014-01-03 17:48:21 +01:00
Henrik Rydgård
f570601f84 Preliminatory support for a fullscreen toggle for SDL platforms.
Does not seem to work on Mac.
2014-01-03 15:16:23 +01:00
Henrik Rydgård
b0bfda6333 Merge pull request #4515 from bollu/improvedTilControls
Redid the tilt controls in a nicer way
2013-12-22 02:13:28 -08:00
raven02
1ff9b5b21f emnu fix#5 2013-12-21 16:44:58 +08:00
bollu
fc1da7c796 Merge branch 'master' of https://github.com/hrydgard/ppsspp into improvedTilControls 2013-12-16 07:16:05 +05:30
Henrik Rydgard
214cc01976 Fix bugs in stencil2alpha, fix bugs in glsl 3 support, enable dual source blending where available
The stencil2alpha bug fixes fix some glows in Wipeout, dual source fixes the rest.
2013-12-15 12:49:13 +01:00
bollu
b0c7e824be Merge branch 'master' of https://github.com/hrydgard/ppsspp into improvedTilControls 2013-12-14 16:45:29 +05:30
Henrik Rydgard
3baddab8a9 Tweak the new button style to add slight drop shadows, add folder icons.
Set the new style as default now that it works on white backgrounds too.
2013-12-11 09:37:07 +01:00
Henrik Rydgard
76707aa81e Make the on screen touch control resize if you resize the window. 2013-12-11 09:37:05 +01:00
Henrik Rydgård
886607d529 Make Save/Load state mappable to controls. Not mapped by default. 2013-12-06 15:46:56 +01:00
Henrik Rydgård
cd2adf80a4 Add keybinding to rewind (backspace by default), if rewind states are enabled. Disable rewind on mobile. 2013-12-05 16:25:17 +01:00
Henrik Rydgård
d6c8c6cfa0 If the user opens a ZIP file, offer to install it (it will show up in Homebrew & Demos).
No progress bar yet, it just freezes during install.
2013-12-05 14:21:07 +01:00
Henrik Rydgard
32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Henrik Rydgård
0d05a8f4a9 Merge pull request #4392 from hrydgard/multi-press
If an input (axis or key) is mapped to multiple targets, trigger them all.
2013-11-29 05:26:55 -08:00
Henrik Rydgard
1a6b4ceafb Compensate frame delay for the PSP refreshing at 59.94 Hz 2013-11-20 23:53:28 +01:00
Unknown W. Brackets
29d78e4b5e Resize and clear cache when changing res.
Native only handles one message at a time, and resizing can require both
(because of auto settings.)
2013-11-19 22:44:12 -08:00
Sacha
fb7c3d96fd Introduce Timer Hack.
Has been used in previous Symbian releases to improve speed. Was thought to only work on Wipeout but actually works on most games?
Games that run based on internal timer will experience 60 VPS without frameskip.
2013-11-16 02:16:17 +10:00
Henrik Rydgård
40bd1fa650 Add freeze-frame to developer menu. Only useful for developing, like when using nVidia PerfHud. 2013-11-15 13:11:44 +01:00
bollu
9c219bc18b moved tilt logic to separate unit and enabled tilt to control multiple input types 2013-11-11 17:22:04 +05:30
Unknown W. Brackets
712b582d26 Remove coreParam.disableG3Dlog and enableDebugging.
One was uninitialized, the other one unused.
2013-11-09 11:02:12 -08:00
Henrik Rydgård
23ac6ea2fd Merge branch 'autoLoadSave' of https://github.com/bollu/ppsspp into bollu-autoLoadSave
Conflicts:
	Core/Config.h
	UI/EmuScreen.cpp
2013-11-06 15:40:36 +01:00
Unknown W. Brackets
5328e213a6 Clear the jit cache when toggling debug stats.
This way we can bypass that check normally, for speed.
2013-11-04 08:03:50 -08:00
Henrik Rydgård
bf7f582c3c If an input (axis or key) is mapped to multiple targets, trigger them
all, not just the first one.
2013-10-31 16:50:27 +01:00
Siddharth
186f0a33ba fixed some more indentation 2013-10-30 23:24:41 +05:30
Siddharth
b5d8601f98 cleanup 2013-10-30 23:22:46 +05:30
Siddharth
b87342a433 now auto loads most recent save state 2013-10-30 23:21:25 +05:30
Siddharth
10ca6cac90 style changes 2013-10-30 22:48:14 +05:30
Siddharth
6cd5b748eb created auto load feature 2013-10-30 22:46:27 +05:30
Henrik Rydgård
9c546b5d36 Merge pull request #4340 from bollu/analogStickTiltControl
full tilt based analog controls
2013-10-28 05:20:46 -07:00
Siddharth
c7bb50ef00 some more indentation fixed 2013-10-28 16:58:46 +05:30
Siddharth
fce408ad81 renamed curve1 to tiltInputCurve 2013-10-28 16:49:36 +05:30
Siddharth
bc9852dad5 fixed indentation and code style 2013-10-28 16:45:27 +05:30
Siddharth
5daaaa3aad made deadzones configurable 2013-10-28 16:43:42 +05:30
Siddharth
ec0e0d7047 implemented full tilt based D-pad controls 2013-10-27 23:28:47 +05:30
Henrik Rydgård
525767dc27 EmuScreen: Only react to keydowns when looking for the back key. 2013-10-27 10:50:45 +01:00
Henrik Rydgård
4590e44954 add "onFinish" to screens so that ESC (etc) works the same as the back
touch button.
2013-10-25 13:19:08 +02:00
Henrik Rydgard
62685b6145 Fix a bug where we would push two gamepausescreens in some circumstances.
+ a cosmetic fix.
2013-10-22 16:19:46 +02:00
Siddharth
38442c090e allow loading and unloading of onScreen control coordinates. Also, use sane (bottom left origin)coordinate system for all onScreen elements
can now reposition on screen controls

removed unnessecary files

fixed indenting issues

renamed RepositionOnScreenControlScree to TouchControlLayoutScreen
2013-10-20 00:39:38 +02:00
The Dax
2b12fc0c54 Remove hack fix for switching shaders. Create new native messages for EmuScreen to avoid threading issues. Remove gpu function calls from WndMainWindow.cpp and use NativeMessageReceived instead. 2013-10-12 13:51:27 -04:00
Unknown W. Brackets
21f522746f Cleanup shutdown on Windows to avoid races.
Was still getting crashes sometimes.
2013-10-12 01:40:33 -07:00
danyalzia
0394b78ca9 Only use tilt to control function in mobile 2013-09-30 00:07:38 +05:00
danyalzia
d09495b72c Only use tilt to control function in non-windows 2013-09-29 23:31:08 +05:00
Henrik Rydgard
9beb727eac Make chainfire3d warning translatable. 2013-09-17 10:29:11 +02:00
Henrik Rydgard
fce5067279 Show a warning message on game start if Chainfire3D is installed. 2013-09-17 10:27:42 +02:00
Unknown W. Brackets
8902e85f0a Enable the debug windows always, disable buttons.
This way you can close them/whatever, and hopefully should avoid crashes.

Only downside is you can't pause the game now and then hit stop in the
debugger.
2013-09-15 09:35:58 -07:00
The Dax
e8fd5881b8 Move global UI status out of WndMainWindow.cpp, simplify the menu translation code(it doesn't need to dictate checked or enabled items, the UI already does it later on anyway), and clear out a few old menu items that have been removed. 2013-09-14 12:49:50 -04:00
Henrik Rydgard
2745744d99 Split the resolution setting into Window Size and Rendering Resolution (internal resolution).
Gets rid of our "antialiasing" (simply crank up internal resolution to 2x your window size).

Proper MSAA is coming later.
2013-09-11 00:19:34 +02:00
Henrik Rydgard
3b4cf31197 Try to prevent any remaining "stickiness" when you map analog axises to buttons/direction 2013-09-09 23:55:42 +02:00
Henrik Rydgard
b24ea4014a Simple tilt sensitivity setting 2013-09-09 23:48:11 +02:00
The Dax
f594157374 Overhaul the Win32 UI. New things include:
-File -> Savestate Slot: Lets the user pick the savestate slot to be used.
-Game Settings -> More Settings...: Opens the main settings screen from anywhere.
-Game Settings -> Control Mapping...: Opens the key mapping screen from anywhere.
-Infrequently changed options were removed.
-Organised menus; nothing is out of place anymore.
-Simplified menus: as some options were removed or moved, it's easier to find what you're looking for, now.
2013-09-07 17:05:23 -04:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Henrik Rydgard
c31ae0645f Add optional "DevMenu" in-game button for quick access to things like log settings 2013-09-07 20:54:51 +02:00
Henrik Rydgard
349718a3bc Windows: Use system fonts in UI - no more mojibake.
No support for doing this on Android yet, still uses the atlas.
2013-08-30 14:48:52 +02:00
The Dax
c4434dfe9a Make game boot error strings translatable. 2013-08-22 15:39:22 -04:00
Henrik Rydgard
9a0ce170d2 Re-enable the Pause keymapping on Android 2013-08-20 19:10:12 +02:00
Henrik Rydgard
b186294132 UI tweaks. Change to cleaner background image. 2013-08-20 00:49:25 +02:00
Henrik Rydgard
1559b4404a Fix some joystick mapping errors, a minor bug 2013-08-19 22:40:05 +02:00
Henrik Rydgard
6ca3b43b9a Measure actual fps (frameskip+unthrottle included), show all three on one line if you choose "both" (which I probably should rename)
Also prevent annoying scrolls in key mapping dialog
2013-08-19 22:06:49 +02:00
Henrik Rydgard
0a0d8d9e32 Android/SDL buildfix, move remains of the old UI into other files. 2013-08-18 20:25:57 +02:00
Henrik Rydgard
5037568af3 Delete the bulk of the old UI. 2013-08-18 20:22:30 +02:00
Henrik Rydgard
db575d559f Delete the NewUI setting, effectively forcing it on 2013-08-18 20:14:33 +02:00
Henrik Rydgard
0265ab874f Change FPS limit to "alternate speed", expressed in a percentage.
Fix it so it works correctly for 30fps games.

Some menu tweaks.
2013-08-18 18:55:42 +02:00
Tony Wasserka
6cd1091e19 Add an option for enabling software rendering. 2013-08-16 23:48:52 +02:00