Commit Graph

208 Commits

Author SHA1 Message Date
Hajime Hoshi
24d241f1f9 exp/textinput: typo 2024-09-21 13:24:20 +09:00
Hajime Hoshi
42209606b1 internal/ui: disable IME and enable it only when necessary
Closes #2918
2024-08-27 02:22:30 +09:00
Hajime Hoshi
dd63eef65e textinput: support every environment even without IME
Closes #3072
2024-08-24 01:06:52 +09:00
Hajime Hoshi
cde4c4fd2e exp/textinput: bug fix: don't send events on Enter on desktop browsers
Apparently sending an event on pressing Enter on desktops could sometimes
duplicate texts.

Closes #3041
2024-07-15 01:01:16 +09:00
Hajime Hoshi
96e0fd7a50 exp/textinput: bug fix: pressing enter key was often ignored on iOS Safari
Closes #3015
2024-06-12 02:44:51 +09:00
Hajime Hoshi
546c47878d exp/textinput: bug fix: issues on browsers
This change addresses on these issues on browsers:

* Pressing cursor keys didn't work well.
  This is fixed by calling trySend with true on desktops (not mobiles).
* Inputting failed just after moving a cursor.
  This is fixed by resetting a session correctly.
* Sometimes pressing the enter key inserted a new line unexpectedly.
  This is fixed by calling `preventDefault`.

Closes #3014
2024-06-12 01:31:15 +09:00
Hajime Hoshi
bb57fe8e15 exp/textinput: bug fix: go-vet error
Updates #1162
2024-04-04 12:41:11 +09:00
Hajime Hoshi
6f66386f07 exp/textinput: rewrite Objective-C into Go partially
Updates #1162
2024-04-04 11:59:15 +09:00
Hajime Hoshi
b098922889 exp/textinput: typo 2024-04-02 03:09:54 +09:00
Hajime Hoshi
013e235628 cmd/ebitenmobile, exp/textinput: typo 2024-03-27 15:40:37 +09:00
Hajime Hoshi
4b1c0526a7 exp/textinput: add Field
Closes #2827
2024-03-20 23:19:32 +09:00
Hajime Hoshi
dc05f2014f exp/textinput: implement for Windows
Closes #2735
2024-03-09 23:05:19 +09:00
Hajime Hoshi
c0d9954b3e exp/textinput: use native pixels for a candidate window position 2024-03-03 23:35:34 +09:00
Hajime Hoshi
4d72f97e45 exp/textinput: add State.Error 2024-03-03 20:53:58 +09:00
Hajime Hoshi
0fa39182cb exp/textinput: refactoring 2024-03-02 17:17:27 +09:00
Hajime Hoshi
dd6f5c4565 exp/textinput: bug fix: flaky behavior on iOS Safari
Closes #2898
2024-02-06 12:46:37 +09:00
Hajime Hoshi
d7fc49355b exp/textinput: use mouseup for consistency 2024-02-06 00:53:52 +09:00
Hajime Hoshi
0160d40bfb exp/textinput: bug fix: keyboards didn't show immediately after touching
Updates #2898
2024-02-05 23:40:09 +09:00
Hajime Hoshi
7eee3929de exp/textinput: bug fix: a virtual keybord didn't show on iOS Safari
This change fixes the issue by processing a textarea element in a
click or touchstart event.

There is still little odd behaviors, like a keyboard is sometimes
not shown. Let's fix them later.

Updates #2898
2024-02-05 01:01:02 +09:00
Hajime Hoshi
e3b54b41c2 exp/textinput: bug fix: inputting words doesn't work correctly on Android 2024-02-04 14:28:53 +09:00
Hajime Hoshi
60673752a1 exp/textinput: bug fix: enter key doesn't insert a new line char 2024-02-04 14:20:29 +09:00
Hajime Hoshi
5c7bfd3ed7 exp/textinput, examples/textinput: bug fix: handle input states correctly on Android Chrome
Updates #2898
2024-02-03 22:53:42 +09:00
Hajime Hoshi
2ad6ab0dcf exp/textinput: bug fix: position conversion was wrong 2024-01-31 03:51:30 +09:00
Hajime Hoshi
0378230b3e internal/ui: refactoring: reduce theUI 2023-10-15 17:02:15 +09:00
Hajime Hoshi
f25f46f50c exp/textinput: bug fix: compile failure 2023-10-15 03:50:40 +09:00
Hajime Hoshi
27fd10595b internal/ui: refactoring: reduce global functions and prefer Get() 2023-10-15 03:40:48 +09:00
Hajime Hoshi
d6bfca30e2 exp/textinput: fix comments 2023-08-02 21:02:34 +09:00
Hajime Hoshi
8ce6772b59 exp/textinput: adjust the position in Start 2023-08-02 21:00:05 +09:00
Hajime Hoshi
929539b66e add exp/textinput package
This works only for macOS and browsers so far.

Updates #1029
2023-07-05 02:09:04 +09:00
Hajime Hoshi
91802aac47 Remove exp 2016-09-03 14:41:39 +09:00
Hajime Hoshi
15a523c42b Remove exp/gamepad 2016-09-03 14:03:41 +09:00
Hajime Hoshi
b0178e8425 audio: Move exp/audio -> audio (#206) 2016-04-19 01:26:37 +09:00
Hajime Hoshi
283758dddb audio: Remove NewLoop (#200) 2016-04-19 00:49:38 +09:00
Hajime Hoshi
2b4140cb4a audio: Bug fix: Compile error 2016-04-17 03:19:05 +09:00
Hajime Hoshi
6ba088d021 audio: Bug fix: buffers might be run out (#207) 2016-04-16 12:09:25 +09:00
Hajime Hoshi
e5609f06d6 audio: Refactoring 2016-04-16 03:56:14 +09:00
Hajime Hoshi
4b5243579c audio: Remove unneeded C files 2016-04-15 02:07:35 +09:00
Hajime Hoshi
98be54fe60 audio: Bug fix: Compile error and noise on Windows 2016-04-15 01:58:27 +09:00
Hajime Hoshi
715b5df7e1 audio: Consume necessary and sufficient data on each Update (#205) (WIP) 2016-04-15 01:37:48 +09:00
Hajime Hoshi
e93982ffb5 audio: Add doc 2016-04-10 23:15:49 +09:00
Hajime Hoshi
65cbbdd5d9 audio: Misspelling 2016-04-10 23:15:49 +09:00
Hajime Hoshi
e0a091194e audio: Fix wrong comments 2016-04-10 01:13:15 +09:00
Hajime Hoshi
702884acf5 audio: Don't check errors until making current context is done (#204) 2016-04-10 01:11:42 +09:00
Hajime Hoshi
509aa22bae audio: Re-use another OpenAL library for Mac OS X (#195) 2016-04-10 00:39:08 +09:00
Hajime Hoshi
96296f076d audio: Lock OS Thread during initializing OpenAL audio 2016-04-09 23:13:54 +09:00
Hajime Hoshi
52aa9d4784 Revert "audio: Use another OpenAL library for Mac OS X (#195)"
This reverts commit 6e5b8a28dc.
2016-04-09 22:56:25 +09:00
Hajime Hoshi
6e5b8a28dc audio: Use another OpenAL library for Mac OS X (#195) 2016-04-09 22:15:00 +09:00
Hajime Hoshi
9dfbb4161e audio: Remove unused functions 2016-04-09 01:15:39 +09:00
Hajime Hoshi
38ee66070e audio: Fix error messages 2016-04-09 01:10:42 +09:00
Hajime Hoshi
2ba5105ba9 audio: Use channel num and bytes per sample on OpenAL 2016-04-09 01:10:11 +09:00