Commit Graph
197 Commits
Author SHA1 Message Date
Henrik Rydgård db4993bfdc Implement full support for mouse input on Android
The smoothing algorithm changed a bit now that I centralized that logic
in a way that can work with all backends.
2023-12-10 09:52:19 +01:00
Henrik Rydgård c5469c409a Add specific sysprop for accelerometer 2023-11-06 18:33:01 -06:00
Henrik Rydgård 19e4de5088 Change global UI messages to use an enum instead of strings.
Makes it easier to add new ones and delete outdated ones without missing
any uses.
2023-09-30 11:37:02 +02:00
Henrik Rydgård 0b15d7d153 Add remaining functionality to the waiting SDL mainloop 2023-09-29 19:35:16 +02:00
Henrik Rydgård b8baff712b Move the menu frame timing to the emuthread, fix hang on change backend 2023-09-29 19:18:48 +02:00
Henrik Rydgård da801033f5 SDL: Use an "EmuThread" for Vulkan, send input event asynchonously from main thread 2023-09-29 19:10:51 +02:00
Henrik Rydgård abdfe74c94 Extract UpdateSDLCursor() 2023-09-29 19:02:34 +02:00
Henrik Rydgård 66fdb86eff remove g_frameCount, unnecessary GetKeyboardState call 2023-09-29 19:02:08 +02:00
Henrik RydgårdandGitHub 42741430bc Merge pull request #18056 from fp64/sdl-ctrl-w
Implement Ctrl-W and Ctrl-B on SDL
2023-09-03 12:01:29 +02:00
fp64 77baa4e89b Implement Ctrl-W and Ctrl-B on SDL
Closes #18052.
2023-09-02 18:47:37 -04:00
Henrik Rydgård 80a99a67d9 Control: Change internal interfaces to batch-process input axis updates
These naturally come in bunches on many platforms like Android, so lay
some groundwork to also handle them in bunches to minimize locking in
the future.

Linux buildfix
2023-08-31 11:55:53 +02:00
Henrik Rydgård 3d0051f34b Fix enabling of native keyboard input on Switch 2023-08-30 18:14:17 +02:00
Henrik Rydgård e8bb48f369 SDLMain: Correctly return true when SHOW_FILE_IN_FOLDER is actually supported 2023-08-28 14:03:28 +02:00
Henrik Rydgård dfe187df1e Allow disabling HTTPS through the config file
Simply set:

```ini
[General]
DisableHTTPS = True
```

Added to help debug issue #17969
2023-08-24 21:28:30 +02:00
Henrik Rydgård 60492ae579 Make System_ShowFileInFolder a "request"
Also makes support queryable.

Lets us remove the dummy implementations.
2023-08-24 14:22:35 +02:00
Henrik Rydgård 5b76615463 Cleanup and more sensible defaults for current directory 2023-08-18 15:04:20 +02:00
Henrik Rydgård 1ea11c233c Remove "SwapBuffers" from the GraphicsContext interface.
Buildfixes

More buildfix

headless buildfix

One more buildfix
2023-08-11 01:57:02 +02:00
Henrik Rydgård 0477ba8c78 Core.cpp: Some slight simplifications 2023-08-10 17:15:56 +02:00
Henrik Rydgård 5ee04ce403 SDL: Break out event processing from main loop
Makes things a bit easier to work with.
2023-08-08 12:28:42 +02:00
Henrik Rydgård 87569f895d Quick hack for DPI on Mac/Vulkan. See issue #17758 2023-08-03 10:32:52 +02:00
Hoe Hao Cheng 7221e39a03 sdl: scale window dimensions by DPI on initialization 2023-08-02 22:34:46 +08:00
Hoe Hao Cheng b23c59676b SDL: scale touch events by logical DPI too 2023-08-02 22:34:46 +08:00
Hoe Hao Cheng a5fb1a346c sdl: fix --dpi option after HiDPI rework 2023-08-02 22:34:46 +08:00
Hoe Hao Cheng 0d7a1831b6 sdl: support HiDPI on wayland 2023-08-02 22:34:46 +08:00
Henrik Rydgård ab6e902fea Make naett work on Android, UWP, Mac. Exclude on Linux 2023-07-21 10:28:31 +02:00
Henrik Rydgård 85f5136a81 Add a GetProperty query for the git version 2023-07-20 10:57:52 +02:00
Henrik Rydgård 0ae2f5ccbf Fix file filters in Mac file-open dialogs 2023-07-16 15:22:04 +02:00
Henrik Rydgård c49b3f1399 Fix keyboard presence check on switch.
Thanks Unknown who pointed this out in the comments to #17611
2023-07-15 19:19:44 +02:00
Henrik Rydgård 65125583f8 Revert "Merge pull request #17651 from hch12907/master"
This reverts commit 1253e60d19, reversing
changes made to adc24b5001.
2023-07-04 17:08:22 +02:00
Hoe Hao Cheng 3a86ad729d sdl: fix --dpi option after HiDPI rework 2023-07-01 22:50:06 +08:00
Hoe Hao Cheng 1b5d8f302a sdl: support HiDPI on wayland 2023-07-01 02:40:40 +08:00
Henrik Rydgård cf587d2ccc More cleanup after making PopupTextInputChoice choose method automatically 2023-06-22 09:01:14 +02:00
M4xw ae14e08084 [Switch] Base implementation for swkbd 2023-06-22 00:46:02 +02:00
Henrik Rydgård d167a11b1c SDL: Add a way to reset OpenGL graphics by pressing F7. 2023-05-29 11:48:03 +02:00
Henrik RydgårdandGitHub 2675d6ea43 Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally

* Switch axisId to enum InputAxis

* Change int keycodes to InputKeyCode where it makes sense.

* SDL input buildfix

* SDL keycode buildfix

* Switch on enum warning fixes

* Qt keycode buildfix

* iOS keycode buildfix

* UWP keycode buildfix

* More iOS buildfix

* More iOS buildfix

* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Unknown W. Brackets 46101581c0 Core: Cleanup disasm buffer usage. 2023-04-29 09:07:25 -07:00
Henrik Rydgård 6e318dc8b2 Don't try to use precise mousewheel events on old SDL versions.
Fixes compile-time compatibility with older version of SDL.
2023-04-29 12:34:25 +02:00
Henrik Rydgård 5331c5bf84 Implement auto restart for Linux too. 2023-04-29 11:48:35 +02:00
Henrik Rydgård c81d996475 Implement the RESTART_APP system request for Mac 2023-04-29 11:38:47 +02:00
SerenaandGitHub f87bfda8d3 fix open in folder on macOS, avoid spawning the open command to open URLs (#17342)
* fix open in folder on macOS, avoid spawning the open command to open URLs

* fix indent

* goober alert

* no more goober

* fix compiler failing on linux
2023-04-27 13:32:41 +00:00
Henrik Rydgård eeaeb8b7cc Add "Open Memory Stick" to File menu on Mac 2023-04-26 10:18:04 +02:00
Henrik Rydgård 0f107e102e SDL: Enable precise (smooth touchpad) scrolling.
Made possible by #17329
2023-04-25 18:56:48 +02:00
Henrik Rydgård 5d028cb004 Upgrade SDL for Mac
This removes the option to use system SDL, which seems like a trap.

Also simplifies the macbundle.sh script accordingly.

Buildfix

Buildfix fix

Moar buildfix
2023-04-25 11:45:20 +02:00
Serena a71ec1acdf Recognize openable types in Info.plist, debug menu in top bar 2023-04-22 18:11:06 +03:00
Henrik Rydgård d782a49229 Enable building a gold version for mac. 2023-04-19 15:06:02 +02:00
Henrik Rydgård 177a6821ee Merge branch 'serena/macos-bar-menu-items' 2023-03-28 21:54:14 +02:00
Henrik Rydgård c578b91779 Make clipboard copies threadsafe. Don't forget to reset update flag 2023-03-28 16:11:18 +02:00
Henrik Rydgård 8c7ae8836f SDL: Save/load window dimensions 2023-03-28 16:05:33 +02:00
Henrik Rydgård 0b156e734b Pass w and h into the SDL graphics contexts 2023-03-28 16:05:33 +02:00
Henrik Rydgård 57362b9199 SDL: Save window position 2023-03-28 16:05:30 +02:00