News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

UTF-8 character input (redraft)

Started by Phystam, July 04, 2017, 10:26:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Phystam

//I do not know how to move a thread, so I redrafted this.
I could not input UTF-8 characters sequence such as Japanese.
When I added a code in "static void fill_event(event_t* const ev)" function of simevent.cc as follows:

switch (sys_event.type) {
    case SIM_KEYBOARD:
        ev->ev_class = EVENT_KEYBOARD;
        ev->ev_class = sys_event.code;
        break;
    case SIM_STRING: //added
        ev->ev_class = EVENT_STRING; //added
        ev->ev_ptr = sys_event.ptr; //added
        break; //added
    ...
}

then the issue was fixed. This code is included in standard version but not included in extended version.

jamespetts

Excellent, thank you very much for that - now incorporated.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Phystam

Thanks a lot for your early response and updating!