Commit graph

530 commits

Author SHA1 Message Date
Julián Montes de Oca
eb4d679213 Remove auto-deny logic for unimplemented permissions (#807) 2025-10-30 19:57:19 +01:00
Admin
a34c0483bc async networking scripting 2025-10-30 15:54:14 +01:00
Admin
f914293342 typecheck arg 2025-10-30 10:26:40 +01:00
Admin
c6811eb956 default to cx for script macro 2025-10-30 10:17:14 +01:00
Admin
4ad373037d fix + to autodetect concat 2025-10-30 09:31:39 +01:00
admin
5a76450cc9 first fs apis working 2025-10-29 17:26:31 +01:00
Admin
297caeed61 script interface for httprequest complete! 2025-10-29 14:02:29 +01:00
Admin
2a19b53c61 add json parser 2025-10-28 17:55:42 +01:00
Admin
c2d4f4d07d add string to vec mappings 2025-10-28 12:46:50 +01:00
Stevo
082f834f48 Fix X11 Linux compilation errors (#804)
- Fixed missing comma after CopyToClipboard match arm
- Fixed premature closing brace in match statement
- Corrected OpenglCx import path from opengl_x11 to opengl_cx
- Fixed incorrect use of 'self' instead of 'cx' in ShowTextIME, CheckPermission, and RequestPermission handlers

These changes resolve compilation errors that prevented building makepad-studio on Linux X11.
2025-10-27 20:21:03 +01:00
Admin
ca1d432b2f splitting off typed arrays 2025-10-27 09:30:44 +01:00
Admin
b8121c1c8d make sure strings have singular rep 2025-10-26 10:30:59 +01:00
Admin
67d519db15 make types longer 2025-10-25 21:21:49 +02:00
Admin
3168ce35cb make types longer 2025-10-25 21:19:30 +02:00
Admin
76cce72dc9 Fused Id and LiveId 2025-10-25 20:53:30 +02:00
Julián Montes de Oca
c2b5d770b8 Enhance touch handling by using touch radius across platforms. (#801)
- Updated hit testing to account for finger size
- added touch size retrieval in iOS and Android
2025-10-25 19:42:18 +02:00
Julián Montes de Oca
90c69908ad Fix macOS high CPU usage during idle (#798)
- Main loop timer is no longer running unconditionally but rather armed/disarmed on demand
- Removed unnecessary repaint_windows() call
- File watcher is now only included for debug builds
2025-10-25 19:41:10 +02:00
Drin
1c4758655e feat: a native wayland backend (#793)
* initialize the event loop for wayland backend

Signed-off-by: drindr <dreamchancn@qq.com>

* feat: hidpi wayland and mouse event
- hidpi support with wayland
- mouse event support
- refactor some code

Signed-off-by: drindr <dreamchancn@qq.com>

* wayland xkbcommon for key pressing event

Signed-off-by: drindr <dreamchancn@qq.com>

* add support for IME in with wayland

---------

Signed-off-by: drindr <dreamchancn@qq.com>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 19:35:58 +02:00
Julián Montes de Oca
48a1ecd52c Add audio input permission handling and example project (#792)
* Add permission handling for audio input

- Introduced `CheckPermission` and `RequestPermission` operations in `CxOsOp` for managing audio input permissions.
- Implemented permission status checks and requests across iOS, macOS, and Android.
- Added a new `Permission` module to define permission types and statuses.
- Updated event handling to include permission results in the event system.
- Updated manifest files to include necessary permissions for audio input on Android.

* Add audio example project

- Added a new example project for audio processing and permission handling
- Implemented UI components for audio device selection, microphone capture, and playback controls.
- Integrated permission handling for audio input and updated the workspace configuration to include the new example.

* Implement audio permission in Web, catch up Linux and Windows

* Refactor iOS permission handling to avoid ios_app re-entrancy

* Implement iOS mic capture and add sample rate to AudioInfo

* Ensure iOS audio output uses loudspeaker, only when not using external devices

* Enhance audio example by handling sample rates and resampling
2025-10-25 19:15:57 +02:00
Julián Montes de Oca
b2ec4bee5e Fix double borrowing if IOS_APP during window geometry check (#791)
Co-authored-by: Julian Montes de Oca <joulei@buriza.local>
2025-10-25 19:15:44 +02:00
Julián Montes de Oca
f9760ad434 Fix websockets drop panic (#790) 2025-10-25 19:15:22 +02:00
Guocork
2cc316d849 Change XStoreName to Xutf8SetWMProperties (#742)
* Fix bug in text centering

* change XStoreName to Xutf8SetWMProperties

---------

Co-authored-by: Eddy Bruel <me@eddybruel.com>
Co-authored-by: Admin <info@makepad.nl>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 18:57:22 +02:00
Admin
904c4cafad vec and option 2025-10-25 17:03:17 +02:00
Admin
33265fa527 vec and option 2025-10-25 16:39:23 +02:00
Admin
830eb038f2 prepare procmacros 2025-10-21 10:26:39 +02:00
Admin
76c59cc440 fixed tests 2025-10-17 21:58:13 +02:00
Admin
31c41ffd77 clean up heap 2025-10-17 08:38:43 +02:00
Admin
d9fc8da18a add script dep to platform 2025-10-16 13:04:49 +02:00
Admin
1aa5641c61 add script macro 2025-10-13 13:50:09 +02:00
makepaddev
ce0e6fcf34 wasm elide warnings removed 2025-09-09 22:24:18 +02:00
makepaddev
602dd42d36 fix elided lifetime warnings 2025-09-09 21:37:52 +02:00
Admin
3547af9e55 longer timeouts on macos urlsession 2025-09-09 09:30:29 +02:00
Lyda
9c1320bfd5 Implement IME composition handling in WasmWebBrowser (#772)
* Implement IME composition handling in WasmWebBrowser

This update introduces support for handling Input Method Editor (IME) composition events in the WasmWebBrowser class. The changes include:

- Added event listeners for `compositionstart`, `compositionupdate`, and `compositionend` to manage the composition state and data.
- Skipped normal input events during composition to prevent interference.
- Sent the final IME input result to the WebAssembly module upon composition end, ensuring proper handling of user input.

These enhancements improve the text input experience for users utilizing IME, particularly for languages requiring composition.

* chore: remove log
2025-07-29 09:27:27 +02:00
Kevin Boos
31c2476c4d Update old windows-targets dep version to reduce lockfile duplicates (#780)
All other crates in the Rust ecosystem depend on `windows-targets`
v0.52.*, so this small change vastly reduces the number of duplicate
`windows-*` crate dependencies that cargo must download and track in the lockfile.

Also address minor compiler warnings in AdaptiveView.
2025-07-12 02:10:51 +02:00
okapii
a0e8e3b34e Adding min/max support to DSL expressions 2025-07-10 11:21:38 +02:00
Eddy Bruel
0d0715c5bd Further cleanup 2025-07-09 15:04:16 +02:00
alanpoon
639334c0ed Persistent and restoration of Window State (#770)
* Added create_window, remove is_created check

* Added Event::Shutdown for window when shutting down

* reduce code redundancy with assignment

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>

* allow macos fullscreen

* add window_fullscreen

* window_fullscreen

* linux_x11, support set fullscreen during initalisation

---------

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>
2025-06-20 20:49:55 +02:00
Guocork
5fa8c3b266 impl set_position on Linux (#748)
* impl  set_position

* remove set value

* finish set_position
2025-06-20 20:49:03 +02:00
Julián Montes de Oca
0e5bc91f76 Implement data directory handling for mobile platforms (#769)
- Add `get_data_dir` method to `CxOsApi` for retrieving writable data directory paths on mobile platforms.
2025-06-20 20:48:48 +02:00
Julián Montes de Oca
e09f2cb2c5 AdaptiveView Improvements (some regression fixes) (#764)
* Fix DrawList generation mismatch in overlay cleanup

Prevents "Drawlist id generation wrong index" errors when AdaptiveView
switches between variants by using checked_index() instead of direct
indexing to safely handle recycled DrawList IDs in overlay.end().

* Dispatch WindowGeomChange on web upon CreateWindow

* Move display context updates to window and improve default selector in AdaptiveView
2025-06-03 22:11:55 +02:00
Admin
d6fa1e1e23 fix up openxr anchors 2025-05-31 21:38:42 +02:00
Admin
513f510a7b fix up quest xr demo 2025-05-31 20:23:19 +02:00
Admin
ccea852fe9 fix IME backspace on macos regression 2025-05-15 21:53:46 +02:00
Admin
cf4f18c829 1.0.0 2025-05-15 16:46:16 +02:00
Admin
ca6bc0dbad fix webgl 2025-05-15 16:46:16 +02:00
Admin
2fb298bc4b remove shader cache dir warning 2025-05-13 09:23:58 +02:00
Admin
6ab4602b63 websocket closed unexpectedly 2025-05-13 09:09:57 +02:00
Admin
c283129004 studio keepalive 2025-05-13 08:42:40 +02:00
Admin
37e64a98cb fix tint uizoo windows 2025-05-13 08:34:23 +02:00
Admin
c58c277997 keepalive websocket 2025-05-13 08:07:59 +02:00