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 #50834 is a reply to message #50832] Mon, 07 January 2019 01:13 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Zbych wrote on Sun, 06 January 2019 18:52
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


Call it twice.

Mirek
 
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 14:03:04 CEST 2024

Total time taken to generate the page: 0.01820 seconds