Commit Graph

350 Commits

Author SHA1 Message Date
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
3f1544612b Android: Add missing graphics shutdown calls.
These were there for graphics restart (like resize) but not for full
shutdown, which was causing crashes during shutdown sometimes.

See #10931.
2018-04-21 08:33:53 -07:00
Xie Yi
597e61c0c9 add support for File app on iOS 11 2018-04-15 22:54:04 +08:00
Conrad Kreyling
b4e315a839 Use tabs for indentation
When those Xcode defaults bite you
2018-04-08 13:29:38 -04:00
Conrad Kreyling
3f90c97f39 fix “crash on exit”
Leaving this view here causes some kinda race condition on a lock, causing a crash on exit. Simply removing the volume from the superview fixes the issue.
2018-04-08 13:29:38 -04:00
Conrad Kreyling
2febfa1888 allow padding specification, remove NSLog 2018-04-08 13:29:38 -04:00
Conrad Kreyling
cb83ff598b add updated Obj-C version of SubtleVolume 2018-04-08 13:29:38 -04:00
Henrik Rydgård
5f8118b82b Separate T3DCreate* into its own header to avoid including Windows.h etc in some cases. 2018-02-25 10:27:59 +01:00
Kentucky Compass
149ca17df6 iOS: fix hang on exit 2018-02-22 03:04:32 -08:00
Unknown W. Brackets
df5144b94c iOS: Attempt to fix shutdown race condition.
Not really tested, but should be necessary...
2018-02-11 11:47:15 -08:00
Kentucky Compass
e7c9afd7bb another whitespace fix 2018-01-27 15:10:17 +01:00
Kentucky Compass
c5a09de446 one more whitespace fix 2018-01-27 15:10:17 +01:00
Kentucky Compass
d43283239d whitespace cleanup 2018-01-27 15:10:17 +01:00
Kentucky Compass
49c5880fcc disable the iOS thread before shutting down 2018-01-27 15:10:17 +01:00
Kentucky Compass
0943cf3fcc use GLRenderManager on iOS 2018-01-27 15:10:17 +01:00
Conrad Kreyling
0e474077e4 Add taptic feedback on virtual buttons 2018-01-14 13:38:18 -05:00
Kentucky Compass
6ea4924ee9 require iOS 8, add a launch screen 2018-01-04 09:56:49 -08:00
Kentucky Compass
e3af9f401f iOS: ViewController cleanups - delete unused code and properties 2018-01-01 19:12:52 -08:00
Kentucky Compass
873dcaa126 iOS: call PROFILE_INIT so we don't crash with USE_PROFILER 2018-01-01 19:10:45 -08:00
Kentucky Compass
20794081ea iOS: Nix iosCanUseJit and targetIsJailbroken. Move NativeInit call to main so it can take cmd line args. 2018-01-01 19:10:44 -08:00
Kentucky Compass
3e5833843a Remove references to AudioEngine, which isn't used anyway 2018-01-01 17:09:48 -08:00
Kentucky Compass
67c6ecdece nil out sharedViewController in case bindDefaultFBO is called again 2017-12-31 19:53:59 -08:00
Kentucky Compass
152dc2192f iOS: convert all obj-c source code to ARC 2017-12-31 19:36:47 -08:00
Kentucky Compass
4a119beb59 iOS: fix a reference counting bug that may have caused ViewController to never be deallocated 2017-12-31 17:57:39 -08:00
Kentucky Compass
c563166f9a Modernize property syntax and don't use viewDidUnload (deprecated in iOS 6) 2017-12-31 17:54:50 -08:00
Kentucky Compass
5b857f08ed Create AppDelegate the standard way instead of in PPSSPPUIApplication init 2017-12-31 16:02:01 -08:00
Kentucky Compass
ca5758f80b Change iOSCoreAudio from cpp to mm. Explicitly activate the audio session. Always set the same mDataByteSize. 2017-12-31 00:45:05 -08:00
Kentucky Compass
d8b3f4af33 Handle iOS audio session interruptions by reinitializing audio 2017-12-31 00:37:20 -08:00
Unknown W. Brackets
766b40aad8 GPU: Reset GPUBackend on graphics init.
This way, when using a port that doesn't support Vulkan, it doesn't just
silently use upside down GL, etc.
2017-12-26 16:02:55 -08:00
Henrik Rydgård
b9ba525de1 Don't call functions in asserts, they get compiled out in release... 2017-10-20 14:45:00 +02:00
Henrik Rydgård
017d3da067 Allow D3D9 context creation to bail if shader compilation fails (D3D9 runtime not installed).
Fixes an issue where after switching to D3D9 on a PC without the D3D9 runtime, it's impossible to start PPSSPP anymore.
2017-10-20 11:53:07 +02:00
imxieyi
6e9e6f090e map '`' to back instad of esc 2017-09-04 15:17:03 +08:00
imxieyi
f0ba66fcd6 add support for smart keyboard 2017-09-04 15:05:46 +08:00
Henrik Rydgård
e6bf7b5fe0 Buildfixes 2017-08-07 17:09:16 +02:00
Henrik Rydgård
11c75476f7 Turn g_dpi into a float, because why not 2017-08-07 12:16:08 +02:00
Henrik Rydgård
4491c7e2ca Quick hack to enable analog stick sensitivity on non-windows platforms.
See #8028
2017-05-18 15:15:10 +02:00
Xiong Shimin
17b6f9f7a3 Fix: in some extreme case on-screen touch controls get stuck on iOS 2017-05-01 17:58:35 +08:00
Unknown W. Brackets
3b4103cb3b System: Use a separate API for bool props.
This simplifies defaulting, instead of -1 being "true".
2017-04-29 17:35:12 -07:00
Henrik Rydgard
cf365bb257 Minor cleanup with GOLD define - only use it in System_GetPropertyInt 2017-04-05 16:21:08 +02:00
Henrik Rydgård
22782b6439 UWP: Fix DPI calculations for touch. Implement back button support. 2017-03-23 10:02:29 +01:00
Henrik Rydgård
e17772b58d Merge pull request #9430 from unknownbrackets/input-state
Remove legacy InputState tracking
2017-03-15 10:16:14 +01:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets
e1bc26e67a Remove remaining input_state mutexing. 2017-03-14 22:07:06 -07:00
Unknown W. Brackets
255c726c1e Remove legacy pointer tracking outside Windows. 2017-03-14 22:07:05 -07:00
Henrik Rydgård
7e007c3973 Merge pull request #9426 from unknownbrackets/input-state
Remove various legacy parts of the InputState
2017-03-14 09:34:57 +01:00
Unknown W. Brackets
2812ddcc86 Remove End/UpdateInputState and ButtonTracker.
No longer used for anything.
2017-03-13 22:58:38 -07:00
Unknown W. Brackets
ef57eafaad Correct GE debugger font size in small window mode.
This should handle high and low DPI cases correctly, to avoid making the
text unreadably small.
2017-03-12 12:17:35 -07:00
Henrik Rydgård
9f17c7f01e Fix iOS crash. Fixes #9381 2017-03-06 20:27:11 +01:00
Henrik Rydgård
a1941d8a81 It's enough to call net::Init/Shutdown in NativeInit/Shutdown. Remove other calls. 2017-03-06 10:51:28 +01:00
Henrik Rydgard
26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard
55aa879216 A lot of buildfixes 2017-02-06 16:16:43 +01:00
Henrik Rydgard
ad29974a56 Change when drawcontexts are allocated. Hook up backbuffer events to fix d3d9 resizing. 2017-02-06 11:40:16 +01:00
Henrik Rydgard
20d9e60a67 Just some renaming. Start moving away from the "thin3d" name 2017-01-30 14:38:31 +01:00
Henrik Rydgård
b9bbee5c85 Use the mach memory functions on Mac and 32-bit iOS as well. 2017-01-25 20:38:46 +01:00
Henrik Rydgård
193b5f3094 By skipping kernel mappings, I got things to fit in the iOS 64-bit address space. However, something is still a bit broken with JIT... 2017-01-25 18:35:09 +01:00
Henrik Rydgård
5af8b152e1 Further buildfixes 2016-12-27 11:59:12 +01:00
Henrik Rydgard
bb4920298b ios/ViewController.mm : Add a comment about a future optimization 2016-12-21 17:40:33 +01:00
Matthew Campbell
5d17c5e38e fix ios build docs 2016-10-23 09:55:57 +07:00
Florent Castelli
eb2eb4cd9b cmake: Move some platform configuration to a toolchain file 2016-10-12 18:52:23 +02:00
Henrik Rydgard
2a4f4ed41d iOS buildfix, fix another comment 2016-08-28 18:10:26 +02:00
Henrik Rydgard
1e4b77fb49 Use PAGE_SIZE, fix a comment, fix some indentation. 2016-08-28 18:07:54 +02:00
Henrik Rydgard
daf10ec882 Use JIT on iOS (not actually working yet, but it will start working in later commits) 2016-08-28 13:43:59 +02:00
Henrik Rydgard
b39206f922 Use the app cache directory on Android for the shader cache. 2016-01-17 22:15:23 +01:00
Henrik Rydgard
27c71aa340 Get rid of the unused "InstallID" 2016-01-17 15:46:15 +01:00
Unknown W. Brackets
481be1cd34 Fix GL feature detection. 2016-01-06 20:26:53 -08:00
Henrik Rydgård
517c5183ac IOS buildfix 2016-01-03 15:19:43 +01:00
Henrik Rydgard
03aa820c28 Untested ios buildfix 2016-01-01 14:40:18 +01:00
Henrik Rydgard
15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Karen Tsai
c4a28a2998 Restore JIT for armv7/armv7s iOS 9 devices, which were erroneously disabled when I fixed PPSSPP's arm64 crashing. 2015-12-28 14:20:28 -05:00
Unknown W. Brackets
29eea477b9 iOS: Return mobile for device type prop.
This makes touch controls show by default, for example.
2015-12-26 20:38:43 -08:00
Henrik Rydgård
7eb662fc6b Attempt at fixing scissor scaling issue on ios ( #8300 ) 2015-12-24 23:32:24 +01:00
Henrik Rydgard
732b1239e7 Add some permission infrastructure, add an ugly button that asks you to grant STORAGE permission if necessary. 2015-12-17 22:41:50 +01:00
Henrik Rydgård
3386f1e181 Merge pull request #8153 from angelXwind/SpringBoardAnimatedExit
Perform an animated exit to SpringBoard on iOS devices
2015-11-03 20:48:12 +01:00
Karen Tsai
063d519056 Perform an animated exit to SpringBoard on iOS devices as opposed to simply terminating PPSSPP (which could be misinterpreted for a crash) 2015-11-03 13:57:10 -05:00
Karen Tsai
1ba873a496 Override JIT setting in ppsspp.ini for JIT-incapable environments, fakesign PPSSPP binary via adhoc signing in order to prevent crash-at-launch on iOS 9, separate jailbreak detection logic from JIT support logic, temporary change to only enable JIT on iOS 8 and below. 2015-11-03 12:34:33 -05:00
mgaver
0fc2e9a77b Update PPSSPP-Info.plist
Relocate a launch image
2015-10-08 13:44:42 +09:00
Henrik Rydgard
d822cbf60b Move fbo.cpp/h from native into PPSSPP 2015-09-06 13:13:37 +02:00
Conrado
6d00a7722e Changed iOS icons to follow Apple directives (PNG24 with no transparency and no rounded corners). 2015-06-08 22:53:53 -03:00
Karen Tsai
dbd15420f5 Properly post lost_focus and got_focus notifications when iOS app resigns active state and gains active state. Fixes #7758 2015-05-27 02:35:09 -04:00
Karen Tsai
3501d9348d Map right thumbstick as another analog stick, particularly useful for controllers like the DualShock 3/4 when connected to an iOS device. Fixes #7762 2015-05-24 20:46:56 -04:00
Henrik Rydgard
8b05e7abf0 Adjust the audio speed on non-60hz Android devices to compensate.
Greatly improves audio stability on Nexus S.

Fixes #6677 .
2015-01-14 00:45:12 +01:00
Henrik Rydgard
51f352ee26 Delete unused code in DSoundStream, fix system_getpropertyint for iOS 2015-01-11 19:30:25 +01:00
Unknown W. Brackets
c0804427ef Merge remote-tracking branch pull/7047.
And fix the whitespace + optimize the pngs.
2014-11-04 01:46:00 -08:00
TwistedUmbrella
07f0478425 Xcode 6 / iPhone 6 compatibility updates 2014-11-04 03:37:40 -05:00
mgaver
7f3ab8715f use nativeScale insted of scale, works fine.
iPhone 6 Plus scale fix
2014-10-16 09:11:26 +09:00
mgaver
00173b7aee Update ViewController.mm
Fix scale for iPhone 6 Plus
2014-10-16 01:38:17 +09:00
TwistedUmbrella
ea67baa45b Revert "iOS: add LaunchScreen.xib for support iPhone 6 and 6 Plus native screen resolution"
This reverts commit 4dc6e26801.
2014-10-08 16:00:16 -04:00
TwistedUmbrella
3f3e464dae Revert "iOS: Add launch xib name to info.plist"
This reverts commit b7db78362d.
2014-10-08 15:59:18 -04:00
rock88
b7db78362d iOS: Add launch xib name to info.plist 2014-10-03 17:50:12 +07:00
rock88
4dc6e26801 iOS: add LaunchScreen.xib for support iPhone 6 and 6 Plus native screen resolution 2014-10-02 21:49:06 +07:00
rock88
5cb9bddea9 iOS: update few compiler path 2014-10-02 21:07:19 +07:00
Henrik Rydgård
5a0a182a82 Revert "Set NSPrincipalClass to get retina widget rendering on OS X" 2014-09-09 17:42:27 +02:00
Daniel Nagel
1c74f95018 Set NSPrincipalClass to get retina widget rendering on OS X 2014-09-04 12:05:21 +02:00
Henrik Rydgard
39cde7fc48 Hide "immersive mode" on pre-kitkat Android. 2014-07-20 12:11:50 +02:00
Sacha
92f8206fd7 CMake: Detect ARM from processor setting. 2014-06-18 15:37:12 +10:00
Henrik Rydgard
555d494658 Merge branch 'master' of github.com:rock88/ppsspp into rock88-master
Conflicts:
	ios/main.mm
2014-05-25 09:06:06 +02:00
Karen Tsai
3f99c2f2c7 Use tabs instead of spaces. 2014-05-22 03:56:33 -04:00
Karen Tsai
ab44947e00 Improved PPSSPP’s Vibrate() for iOS, now no longer gives you a hand massage. 2014-05-22 03:54:09 -04:00
Karen Tsai
b3b83b33cb Modified bundle ID to be consistent with other platforms. 2014-05-22 02:22:45 -04:00
Karen Tsai
195d9c7fd5 Added basic haptic feedback support for iOS platforms via AudioServicesPlaySystemSound(kSystemSoundID_Vibrate). Does not make use of length_ms… yet. Fixes issue #5614. 2014-05-22 02:20:43 -04:00
Andrey Konoplyankin
821dbb2b55 iOS: add GLES 3.0 support 2014-05-17 13:02:57 +07:00
Andrey Konoplyankin
b386456f44 iOS: transitioning few sources files to ARC 2014-05-17 12:59:13 +07:00
Andrey Konoplyankin
e98febfb91 iOS: implement Vibrate 2014-05-17 12:55:31 +07:00
Henrik Rydgard
7e9c0e766a Attempt temporary workaround for iOS shutdown issues. 2014-02-12 10:26:53 +01:00
sky-zer
90a8ea6a17 love tab not space 2014-02-02 18:50:29 +04:00
sky-zer
b59d7206f5 iOS JIT check correction. Check for controllers connected before launching PPSSPP. 2014-02-02 18:44:06 +04:00
sky-zer
e3f1fbb922 not need 2014-01-27 19:24:22 +04:00
sky-zer
789cb88797 Buildfix for iOS SDK < 7. Correct controller reconnection handling. 2014-01-27 18:32:19 +04:00
sky-zer
4f4edbe959 Refactoring. 2014-01-24 22:46:30 +04:00
sky-zer
55514ee58e iOS: MFi controllers support 2014-01-24 22:39:45 +04:00
W.MS/王京
55fdac7529 remove stupid iOS7 status bar 2014-01-22 13:12:36 +08: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
W.MS/王京
6d4095abdf Disable vertex jit on jailed iOS devices 2013-12-02 10:48:52 +01:00
Unknown W. Brackets
f9522a5e7f iOS: buildfix, stub Vibrate() for now. 2013-10-13 12:12:36 -07:00
Unknown W. Brackets
0d045858e2 Buildfix for iOS. 2013-09-06 01:12:48 -07:00
Henrik Rydgard
c845da2887 Switch System_GetName to System_GetProperty 2013-09-04 11:31:40 +02:00
Unknown W. Brackets
8c4db99435 iOS buildfix. 2013-08-18 20:17:33 -07:00
Sacha
8b4280b297 Rename KEYCODE to NKCODE (native key code) to stop name collision. Implement Blackberry keymapping. 2013-08-05 03:31:40 +10:00
Jake Traynham
0e0aec812f Cleaned up iOS code and updated iCade support; Fixed at3+ download screen 2013-07-19 16:37:41 -05:00
Jake Traynham
7a5794b314 Added NewUI Support in iOS build 2013-07-19 16:37:40 -05:00
Jake Traynham
24961e28ef iOS Audio fixes 2013-06-25 16:18:16 -05:00
Jake Traynham
e89b2055a6 Reenabled armv7s for iOS with JIT fixes 2013-06-20 11:44:59 -05:00
Jake Traynham
4daa042529 added FFMPEG support in iOS build
Also added a new README with more detailed instructions on compiling
the iOS version
2013-06-13 12:07:09 -05:00
Jake Traynham
dc25d42eca Added iCade support to the iOS build 2013-05-30 20:58:41 -05:00
mgaver
60eb15f57a Update ViewController.mm
buildfix
2013-04-24 17:44:43 +09:00
Unknown W. Brackets
a457242982 iOS buildfix (thanks @ipodtouchdude.) 2013-04-24 01:16:01 -07:00
mgaver
71b8a30c65 Update ViewController.mm
Update a jailbreak detection.
2013-04-23 16:31:57 +09:00
Henrik Rydgard
3bd5146fbf iOS: Try to fix analog stick getting stuck. Blind fix :) 2013-03-31 14:21:53 +02:00
Unknown W. Brackets
cce038b009 iOS: Update Info.plist for iPad support (thanks @bsauvage1.)
Reportedly fixes #1015, reportedly fixes #1067.
2013-03-31 00:44:01 -07:00
Unknown W. Brackets
31206e356b iOS: Don't lock input state for so long. 2013-03-30 17:44:00 -07:00
rock88
4208f17c7c iOS: Fix input buttons sticking. 2013-03-30 17:12:45 -07:00
Unknown W. Brackets
7417188671 iOS: Port Android control fix. 2013-03-30 17:11:56 -07:00
Henrik Rydgard
724a600381 Buildfix android, misc other fixes, some include cleanup 2013-03-29 20:55:32 +01:00
Vladislav Korotnev
84efdc903c Enable iTunes file sharing (for those who install with Xcode and aren't jailbroken) 2013-03-18 21:10:40 +06:00
Unknown W. Brackets
e8ac8d49b6 iOS: Reduce CPU consumption for audio, adjust sync.
Still is clicking...
2013-03-16 14:00:41 -07:00
rock88
947f838165 IOS: added audio output 2013-03-16 12:54:16 -07:00
rock88
05bdc2cd2f IOS: iPhone/iPod 5 screen support 2013-03-16 12:53:30 -07:00
KentuckyCompass
e530a306ec Don't rotate to portrait and fix iOS 6 compatibility 2013-03-15 22:23:59 -07:00
Sacha
6a9e2e559c From rock88: Set max FPS to 60 instead of default 30 on iOS. 2013-03-15 12:30:40 +10:00
Sacha
f750724dea Fix iOS assets. Thanks rock88 2013-02-28 10:28:29 +10:00
Sacha
25a37e40dd Fix iOS directory structure in init/NativeInit. 2013-02-24 23:29:04 +10:00
Sacha
630ee68b05 Build fix for iOS. Now compiles. 2013-02-24 22:17:52 +10:00
Sacha
d284a5a413 Fix for iOS
Revert CLang to gcc.
Revert 60 fps (this wasn't working).
Revert rock88's pbxcp usage. This file is no longer available in XCode 4.4+.
2013-02-24 17:19:49 +10:00
Sacha
24ff143158 Set frame rate to 60 on iOS. Default was 30. 2013-02-24 14:42:12 +10:00
Sacha
e848d19dbe Fix for FBO on iOS devices. Allows buffered rendering (from rock88). 2013-02-24 13:47:45 +10:00
Sacha
0b8706684a Add iOS icons to project (from rock88). 2013-02-24 13:32:23 +10:00
Sacha
e3a953972a Fix for iOS CMake
Update toolchain file to reflect that we want to use clang (rock88 is using clang).
Set target in the CMake. Fix for packaging and signing (thanks rock88).
Update linking to include audio and GLKit (thanks rock88).
Update README
2013-02-24 13:23:04 +10:00
Sacha
8c80641b28 iOS redundancies
iOS simulator does not support requires GLES2.0 environment.
Remove all references to simulator.
Add support for armv7s (swift) arch.
2013-02-18 00:41:51 +10:00
Sacha
8ba2769d5e iOS Objective-C code dump.
ViewController courtesy of rock88.
Made modifications for simplification and code-style.
Still missing some files (eg. images). Also, CMake is not set up correctly yet.
2013-02-18 00:05:16 +10:00
Sacha
43de173f08 Update readme with potential iOS build instructions. Add an iOS cmake toolchain. 2013-02-13 16:39:53 +10:00