Commit graph

560 commits

Author SHA1 Message Date
Admin
0a1e93a89e align mathtypes to WGSL 2025-12-02 11:43:12 +01:00
Admin
520ef9486f platform2/draw2 otw 2025-11-30 14:56:53 +01:00
Admin
4209d7409b fix script logs 2025-11-22 14:24:17 +01:00
Julián Montes de Oca
7ff2574dfc Android: Implement ShowClipboardActions with native ActionMode (#821)
Cx API:
- Implement existing ShowClipboardActions
- Add HideClipboardActions
- Cross-platform API ready for iOS implementation

Android Implementation:
- Native ActionMode integration with floating toolbar (API 23+)
- JNI bindings for showing/hiding menu and handling clipboard actions
- Event system for Copy/Cut/Paste/Select All actions
- Smart menu state management based on selection and clipboard

TextInput Integration:
- Long press selects word and shows menu
- Double tap and long press selects word and shows menu
- Selection preservation when tapping selected text
2025-11-22 10:06:05 +01:00
Julián Montes de Oca
8a3be4b23b Fix button clicks during keyboard dismissal on mobile (#803)
* Fix button clicks during keyboard dismissal on mobile

When tapping a button while the keyboard is visible on iOS/Android, the keyboard dismisses and shifts the layout mid-press. This caused the event system to treat the finger as no longer "over" the button, preventing the click from registering.

Fixed by treating taps as "over" if the finger didn't move significantly, even if the widget moved underneath due to layout shifts.

* Make is_over conditionals clearer
2025-11-18 20:39:08 +01:00
Admin
6a5b52217e first shader typeinferencing 2025-11-18 07:43:55 +01:00
Kevin Boos
7bbb42a1b3 Fix modal; enable widgets to block scrolling except within a certain area (#819)
* Fix modal event handling behavior

Everything now works as expected, *except* for Scroll events that seem to
still be received by views beneath the modal, e.g., an underlying PortalList.

* Enable widgets to block scrolling, except within a certain area

* This is important for Modals to prevent scrolling of background widgets
  whilst still allowing the inner `content` view to be scrolled.
* Modals are now forcibly full-screen (or rather, full-window)
  in order to properly ensure that scrolling-allowed areas
  always stay relevant, as the Modal can no longer be contained
  within a non-full-window parent widget/view.

* remove errant log statement
2025-11-13 08:45:36 +01:00
Eddy Bruel
ecc9f811ee Wrap walk metrics into struct 2025-11-10 16:20:51 +01:00
Admin
a0e4ae49a2 add first step for pods 2025-11-09 21:18:17 +01:00
wyenox
ba66ff9359 "app focus" events renamed to "window focus" (#818) 2025-11-07 22:59:54 +01:00
wyenox
267fdcb371 fix window-level focus issues (#817) 2025-11-07 19:04:41 +01:00
Admin
0c6f0f7d66 fix 2025-11-05 13:48:58 +01:00
Admin
19ac38e6dd cleanup tasks 2025-11-04 17:52:09 +01:00
Admin
4c3828cbf2 update comfyui to new channels 2025-11-04 15:52:23 +01:00
Admin
c90f3992d6 update comfyui to new channels 2025-11-04 15:45:59 +01:00
Admin
d6f3ae9786 first channels working 2025-11-04 15:04:22 +01:00
Admin
5540f702b9 first channels working 2025-11-04 14:59:04 +01:00
Eddy Bruel
c6210b2ff5 Implement RowAlign::Baseline 2025-11-04 10:39:15 +01:00
Julián Montes de Oca
18df23df64 Fix x11 handle_script_signals call (#811) 2025-11-03 18:20:39 +01:00
Admin
7e6cfe0b11 cleanup 2025-11-03 14:49:43 +01:00
Admin
dc44453f58 added script handles 2025-11-03 13:36:38 +01:00
Admin
9c5b2df148 fix 2025-11-02 16:09:05 +01:00
Admin
2c666dcbbc added stdlib fns 2025-11-02 10:50:35 +01:00
Admin
5811e8bcef first splash script working! 2025-11-01 19:33:16 +01:00
Admin
5aa29ed2bf child processes and random nr gen 2025-11-01 17:45:24 +01:00
Admin
b8d0e8e029 child processes and random nr gen 2025-11-01 17:40:30 +01:00
Admin
83432a34dd add script timers 2025-11-01 12:56:54 +01:00
Admin
991879e058 websockets 2025-10-31 17:23:17 +01:00
Admin
fa9d44e2cc add fn syntax 2025-10-31 14:33:37 +01:00
Julián Montes de Oca
4129578499 Fix network response handling in process_to_wasm function (#808) 2025-10-30 20:13:33 +01:00
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