Yorick Reum
6c9c2a9ac2
Xcode-iOS/Demos/src/fireworks.c: Make rendering CPU efficient
2025-07-12 07:35:08 -07:00
Amir
ccade50587
Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"
...
https://stackoverflow.com/questions/42125/warning-error-function-declaration-isnt-a-prototype
In C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. In C++ they mean the same thing.
2024-07-17 10:51:30 -07:00
Sylvain Becker
a14b948b6c
[SDL2] pointer boolean ( #8523 )
2023-11-10 06:30:56 -08:00
Sylvain Becker
fb0ce375f0
Cleanup add brace ( #6545 )
...
* Add braces after if conditions
* More add braces after if conditions
* Add braces after while() conditions
* Fix compilation because of macro being modified
* Add braces to for loop
* Add braces after if/goto
* Move comments up
* Remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements after merge
* Fix inconsistent patterns are xxx == NULL vs !xxx
* More "{}" for "if() break;" and "if() continue;"
* More "{}" after if() short statement
* More "{}" after "if () return;" statement
* More fix inconsistent patterns are xxx == NULL vs !xxx
* Revert some modificaion on SDL_RLEaccel.c
* SDL_RLEaccel: no short statement
* Cleanup 'if' where the bracket is in a new line
* Cleanup 'while' where the bracket is in a new line
* Cleanup 'for' where the bracket is in a new line
* Cleanup 'else' where the bracket is in a new line
(cherry picked from commit 6a2200823c to reduce conflicts merging between SDL2 and SDL3)
2022-11-28 12:33:03 -08:00
Sylvain
ce5da5d579
Don't compare pointer against '0', but NULL
2022-11-16 21:47:43 +01:00
Sam Lantinga
9f784b1887
The iOS and tvOS demos link SDL statically, not as a framework
2022-11-14 10:59:23 -08:00
Sam Lantinga
4471d22eb6
Updated iOS demos Xcode project
2022-09-28 01:10:23 -07:00
Sam Lantinga
229315b014
Updated SDL Xcode test project to build for iOS and tvOS
...
Tested with Xcode 14.0.1
2022-09-28 00:06:06 -07:00
Sam Lantinga
056c09942d
Updated iOS build instructions
2021-11-30 12:19:26 -08:00
Sylvain
c0029f01d7
remove 'free' in comment
2021-11-22 08:38:46 -08:00
Sylvain
d31251b014
use SDL's functions version inplace of libc version
2021-11-22 08:38:46 -08:00
Sam Lantinga
19c129faba
Added documentation that the UIApplicationSupportsIndirectInputEvents key must be set to true
...
in your application's Info.plist in order to get real Bluetooth mouse events.
2021-11-09 20:32:16 -08:00
Sam Lantinga
a7e2e3a329
Fixed rendering in the iOS touch demo
2021-11-09 13:36:44 -08:00
Daniel Inkpen
344f018dfd
Xcode-iOS Demos: Add CFBundleShortVersionString to Info.plist
...
Xcode 13.0 requires this key to be present in the Info.plist to be able to run the compiled code.
2021-09-29 16:39:31 -07:00
Sam Lantinga
b79e1baa36
Added weak linking to hidapi framework
...
Also added testsensor to the test project
2020-11-17 10:29:36 -08:00
Sam Lantinga
009b62f1c2
Be explicit about mapping the new game controller paddle buttons
2020-11-07 02:22:15 -08:00
Sam Lantinga
cf8d3befe6
Added iOS controllermap test
2020-11-06 16:01:43 -08:00
Sam Lantinga
d5e367a466
Fixed build so CoreBluetooth framework is only needed by hidapi
...
Also added plist keys for Bluetooth permission so testgamecontroller works with HIDAPI enabled
2020-11-06 14:45:36 -08:00
Sam Lantinga
fbf0484a17
Embed the hidapi framework for the iOS and tvOS game controller test
2020-11-06 14:08:11 -08:00
Sam Lantinga
1bd4b7fdf1
Updated iOS tests and demos for latest SDL linking requirements
2020-11-06 13:03:07 -08:00
Sam Lantinga
dc60b975f3
Removed old iOS-only project and demos
2020-11-06 11:32:59 -08:00
Ozkan Sezer
e58cc5fa0e
minor whitespace fix
2020-10-09 03:28:30 +03:00
Sam Lantinga
79e625f017
Fixed trying to build OSX SDL_OpenURL on iOS and tvOS
2020-10-08 17:01:28 -07:00
Sam Lantinga
76980e30f2
Added events for dynamically connecting and disconnecting displays, with an iOS implementation
2020-10-08 16:42:20 -07:00
Ryan C. Gordon
7bec9df11a
url: Add to Xcode project files, iOS/mac fixes.
2020-10-05 16:10:10 -04:00