627 Commits

Author SHA1 Message Date
redphx
e8de67c817 Optimize Patcher.#patchFunctionBind() 2024-01-06 12:05:08 +07:00
redphx
c3d37b7034 Another attempt to fix the StreamMenu buttons 2024-01-06 11:51:02 +07:00
redphx
03926451ec Fix some buttons not hiding when the System menu bar is collapsed 2024-01-06 11:12:41 +07:00
redphx
dac5b39097 Disable the MKB feature for mobile browsers 2024-01-06 10:36:41 +07:00
redphx
9332892353 Add "unsupported" property to Preferences.SETTINGS 2024-01-06 10:21:35 +07:00
redphx
00041eb911 Use a different method to disable StreamGate (#210) 2024-01-06 08:12:49 +07:00
redphx
6c996769b7
Update README.md 2024-01-05 17:18:52 +07:00
redphx
e4d6afc2d2 Bump version to 3.0 v3.0 2024-01-04 21:05:56 +07:00
redphx
7b59a8cd5e
Add Mouse & Keyboard support (#194)
* Add initial support for MKB

* Refactor icons

* Enable native MKB support for some games

* Move Stream settings & stats buttons to Stream HUD bar

* Split stream settings into tabs

* Use bx-gone class to show/hide Settings sidebar

* Update translations

* Update Toast class

* Press F9 to toggle MKB feature

* Disable Gamepad Disconnected screen

* Change from F9 key to F8 key

* Reverse back to F9 key + disable "disableGamepadDisconnectedScreen" patch

* Fix "disableGamepadDisconnectedScreen" patch

* Add fade in/out animations for Toast

* Fix Settings tabs not showing

* Fix touch controller not showing sometimes

* Add basic remapping screen

* Update MKB layout

* Add edit/save states

* Add borders to highlight Quick Settings tabs

* Get key name from key code

* Move the Dots button to the beginning

* Disable non-working native MKB games

* Optimize Patcher class: only apply "playing" patches when needed

* Refactor renderMkbSettings() to MkbRemapper class

* Refactor the rendering process of MkbRemapper

* Implement new method to control analog stick using mouse

Heavily inspired by Yuzu's "Mouse panning" feature

* Update README.md

* Refactor setting elements

* Reduce button prompt's font size

* Render mouse settings

* Add a warning in MKB remapper

* Update preset's structure

* Disable "contextmenu" event of dialog & its overlay

* Fix bug in MkbPreset.convert()

* Detect scrolling events while binding

* Convert wheel events to button press

* Fix minor bugs in Stream settings

* Fix RT mapping

* Add setValue() method to SettingElement

* Update preset after binding new key

* Update preset after changing mouse's settings

* Update UI of mouse's settings

* Update style

* Fixed action buttons at the bottom

* Add support for "exactTicks" param to Number Stepper element

* Don't render first & last markers

* Add basic LocalDb class

* Allow switching between presets

* Enable/disable elements when editing preset

* Update translations

* Refactor code

* Define  "CE = createElement" globally

* Add createButton()

* Add icons to buttons

* Implement the "Cancel" button

* Implement the "Rename" button

* Add styling for disabled buttons

* Implement "New" & "Copy" buttons

* Implement "Delete" button

* Refactor code

* Fix exception when creating Default preset

* Set default name when copying preset

* Implement "Save" button

* Implement "Activate" button

* Implement switching preset data

* Pre-calculate mouse's sensitivities + fix not converting preset before using

* Fix mouse buttons not working

* Remove "not working" line

* Show "right-click-to-unbind" text

* Bug fixes

* Add ENABLE_NATIVE_MKB_BETA flag

* Update styling

* Add mention to Yuzu emu

* Pre-calculate mouse's sensitivities in MkbPreset.convert()

* Update translations

* Add donation link

* Update translations

* Add "Map mouse to" setting

* Fix styling

* Bug fixes

* Implement requestPointerLock()

* Hide pointerLock message when StreamMenu is being shown

* Fix bugs in Chrome

* Fix a bug causing Remote Play not working

* Remove "Disable bandwidth checking" feature as it's useless

* Update README.md

* Update styling

* Add URL to document

* Temporary disable the "Controller shortcuts" feature as it conflicts with the MKB feature

* Update translations

* Update README.md
2024-01-04 21:04:27 +07:00
redphx
b73109d9b4
Update README.md 2023-12-29 17:42:36 +07:00
redphx
e3b7365910
Update README.md 2023-12-21 09:04:53 +07:00
redphx
bdfb23257c
Update README.md 2023-12-20 14:40:54 +07:00
redphx
0870065a81 Bump version to 2.1.2 v2.1.2 2023-12-19 18:10:50 +07:00
redphx
e0f0617b12 Update translations 2023-12-19 18:10:30 +07:00
redphx
38623cc086
Fix Remote Play (#188)
* Try to fix remote play not working when not using local network

* Fix Server badge reporting incorrect info

* Refactor remote play requests in window.fetch

* Fix exceptions

* Stop overriding WebSocket class

* Fix not connecting to IPv6 server as expected
2023-12-19 18:08:14 +07:00
redphx
bbce49791f Bump version to 2.1.1 v2.1.1 2023-12-14 17:52:40 +07:00
redphx
d719f0c2b5 Update translations 2023-12-14 17:52:19 +07:00
redphx
622057980d
Update README.md 2023-12-14 17:50:47 +07:00
redphx
24d608bc3e
Redesign Quick Settings sidebar (#186)
* Redesign Quick Settings bar

* Move stream stats settings to quick settings bar

* Add "for" attributes to labels

* Minor optimization

* Stop rendering Toast

* Don't render UI elements when not playing
2023-12-14 17:44:12 +07:00
redphx
f55344b4cb
Update README.md 2023-12-14 09:41:00 +07:00
redphx
6139fb386b
Update README.md 2023-12-14 09:14:37 +07:00
redphx
f7c46c5ef3
Update README.md 2023-12-14 08:03:27 +07:00
redphx
f5b495efa8
Update README.md 2023-12-13 08:33:21 +07:00
redphx
eb4803492e
Update README.md 2023-12-13 08:07:39 +07:00
redphx
47ef7da37b Bump version to 2.1 v2.1 2023-12-12 17:55:41 +07:00
redphx
63896469e2
Update README.md 2023-12-12 17:52:19 +07:00
redphx
4ab265e370
Controller & device vibration (#184)
* Test vibration

* Modify vibration patterns

* Try another vibration patterns

* Update vibration patterns

* Add setting to toggle device vibration

* Disable device vibration based on setting

* Bug fixes

* Test PWM

* Rename GamepadVibration to VibrationManager

* Add setting to toggle controller vibration

* Add vibration intensity setting

* Move Controller settings to the top

* Fix device vibration intensity

* No longer parse "delayMs" and "repeat"

* Fix device vibration intensity

* Disable vibration features on unsupported browsers

* Add "step" property to Vibration intensity slider

* Disable PWA prompt & Stream Gate dialog

* Update translations
2023-12-12 17:37:04 +07:00
redphx
584509a53d Improve IPv6 server detection 2023-12-09 11:09:08 +07:00
redphx
f3b9ebdb22 Bump version to 2.0.5 v2.0.5 2023-12-08 07:43:30 +07:00
redphx
abd1aae57a Add "enableConsoleLogging" patch 2023-12-08 07:35:45 +07:00
redphx
ccdb944b99 Fix the Settings button not showing for some users 2023-12-08 07:23:44 +07:00
redphx
b4149e718b Bump version to 2.0.4 v2.0.4 2023-12-06 20:06:41 +07:00
redphx
7c22685e95
Update README.md 2023-12-05 14:50:32 +07:00
redphx
ad98eb60e1 Only call eval() once per patch group 2023-12-05 06:38:35 +07:00
redphx
049e65429a Fix not applying patches correctly 2023-12-03 16:36:02 +07:00
redphx
a5b77ae8c0 Improve Patcher class 2023-12-03 10:38:10 +07:00
redphx
49550eed0a Add "enableXcloudLogger" patch 2023-12-02 17:31:51 +07:00
redphx
01861e0ca5 Bump version to 2.0.3 v2.0.3 2023-12-02 11:27:37 +07:00
redphx
12d6fbd9c8 Check patches one by one to improve performance 2023-12-02 11:10:36 +07:00
redphx
1b0b15de76
Update README.md 2023-12-02 10:31:46 +07:00
redphx
5eba0f0ed7 Optimize Patcher class 2023-12-02 10:22:50 +07:00
redphx
0a851e5417 Rearrange patches to improve performance 2023-12-02 09:54:37 +07:00
redphx
d38e5e8812 Fix Ukrainian translation 2023-12-02 09:14:12 +07:00
redphx
69261a7f1d Add Ukranian translations 2023-12-01 17:12:45 +07:00
redphx
96b20dcb19 Fix Remote Play's stream didn't close properly 2023-12-01 06:24:58 +07:00
redphx
c5a4af9f49 Fix cloud gaming opened instead of Remote Play 2023-12-01 06:20:51 +07:00
redphx
3c62d1356f Update device info for Remote Play 2023-12-01 05:57:26 +07:00
redphx
78bfc09749 Fix Remote Play's resolution setting not applying correctly 2023-11-30 21:58:34 +07:00
redphx
f3bf7a0230 Update translations 2023-11-30 20:57:15 +07:00
redphx
c9a2d92c47 Disable idle warning while remote playing 2023-11-30 20:52:23 +07:00