Comments (3)
Are you synthesizing the key presses yourself or translating them from an existing framework?
I would actually look at Sample 7, specifically where it takes GLFW keypress (WindowGLFW_key_callback) and GLFW char events (WindowGLFW_char_callback) and translates them into appropriate Ultralight events for guidance on using this API: https://github.com/ultralight-ux/Ultralight/blob/master/samples/Sample%207%20-%20OpenGL%20Integration/src/Window.cpp
from ultralight.
At the moment I am trying to synthesize the input to get it working, the end result will come from sdl
This is my keydown code I trigger it with the sdl keydown then trigger the up when releases
I have tried various keycode/scancode/text combos and cant get anything to work at all
I load a js key tester page to make sure its not my js https://keyjs.dev/ and it gets nothing as well
int keycode = 69; // 101;
int scancode = 8;
ULString keytext = ulCreateString("E");
ULKeyEvent evt = ulCreateKeyEvent(kKeyEventType_RawKeyDown, 0, keycode, scancode, keytext, keytext, false, false, false);
ulViewFireKeyEvent(view, evt);
ulDestroyKeyEvent(evt);
from ultralight.
I pulled out the relevant code from my program and made a small program that has the same problem
https://github.com/jeff8j/Ultralight-SDL-Key-Test/blob/main/main.cpp
from ultralight.
Related Issues (20)
- JavaScript Alt key detection does not work
- ulCreateView doesn't exist in 1.4 dev build on arm m1 mac HOT 4
- Canvas toDataURL() returns empty string
- Can the x86 architecture be used? HOT 1
- Out of date website significantly undersells you HOT 2
- Nintendo Switch support HOT 2
- Add move semantics to C++ API
- Please, add support 32bit Windows
- Input tag with type "date" not working
- Setting the cache_path does not work
- JS feature support HOT 7
- Transparent Frameless Window & Window icon
- [Bug] select issues with ultralight
- Dashed and dotted borders do not appear unless border-radius is set
- Inquiry about x86 Architecture Support on Windows
- event.key value is "Unidentified" for Escape, NumLock, and for all numpad keys (other than Enter) when numlock is on; event.code is empty string for all keys
- JSCallbackWithRetval via CAPI? HOT 2
- Login issues on certain sites using Sample 8 - Web Browser
- overlay issue and resize issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralight.