patchFreeciv - Patches: patch #4766, Handle SDL_TEXTINPUT

 
 
Show feedback again

patch #4766: Handle SDL_TEXTINPUT

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Sun 01 Jun 2014 08:41:29 PM UTC  
 
Category: client-sdl2Priority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.6.0, 3.0.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 09 Jan 2015 04:44:36 AM UTC, SVN revision 27585:

Handle SDL_TEXTINPUT for sdl2-client edit widgets.

See patch #4766

(Browse SVN revision 27585)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Fri 09 Jan 2015 04:43:26 AM UTC, SVN revision 27584:

Handle SDL_TEXTINPUT for sdl2-client edit widgets.

See patch #4766

(Browse SVN revision 27584)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon 05 Jan 2015 01:24:25 PM UTC, comment #1:

Patch to receive SDL_TEXTINPUT for edit widgets.

This should make them usable for ASCII locale. The big problem is that SDL_TEXTINPUT (and SDL2 in general) handles text as UTF-8 and most of the sdl2-client code is built on assumption about UNICODE. 7-bit ASCII works as those characters share the values between encodings, but any other character entered gets corrupted.

(file #23406)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sun 01 Jun 2014 08:41:29 PM UTC, original submission:

SDL2 rearranged how keyboard is read. We're not handling SDL_TEXTINPUT events that would give us keys that may be on different locations depending on layout. In practice we currently get only keys used for unit movement, no other keyboard input works.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23406:  Sdl2Textinput.patch added by cazfi (13kB - text/x-diff)

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Jan 2015 04:43:45 AM UTCcazfiStatusReady For Test=>Done
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Mon 05 Jan 2015 01:24:25 PM UTCcazfiAttached File-=>Added Sdl2Textinput.patch, #23406
      StatusNone=>Ready For Test
      Planned Release=>2.6.0, 3.0.0
    Sun 01 Jun 2014 08:45:57 PM UTCcazfiDependencies-=>patch #4765 is dependent
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup