Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Framebuffer backend compilation errors
Re: Framebuffer backend compilation errors [message #50832 is a reply to message #50830] Sun, 06 January 2019 18:52 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
I have one more question regarding translation of key (up/down) events.
How should I know when to send some key press as ascii value and when as K_* value?
For example when I call Ctrl::DoKeyFB with key 'a' as ascii code it is shown in Uword editor, but Ctrl+a won't work.
When I translate key 'a' to K_A, Ctrl+a works, but letter 'a' won't show in the editor.
Maybe I should call Ctrl::DoKeyFB twice? One call with ascii code and second one with K_* value?

In the SDL backend there are two separated paths SDL_TEXTINPUT and SDL_KEYDOWN/SDL_KEYUP in HandleSDLEvent.
But from libinput I receive just key up/down events
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Images not showing and callback not taking lambda
Next Topic: SplitterFrame: How to build this?
Goto Forum:
  


Current Time: Thu May 09 06:59:15 CEST 2024

Total time taken to generate the page: 0.03404 seconds