Results 1 to 2 of 2

Thread: Getting textual input

  1. #1

    Getting textual input

    Hi! I've this problem: i must read some text in a sdl program to implement a chat system.
    Now, the only way i found on sdl to read from keyboard is the classic key events. But they just give you the press-release changes, and don't handle things like capitals etc, since the shift and ctrl keys are just treated like any other. Also, key-mapping seems to be the normal USA one, width the " character over the 2 and the ? over the ', etc etc even if keyboard is different.
    Is there a way to read a simple text ? or a library to do that ?
    I really need it..

    Thanks!

    PS i'm developing cross-platform for linux and windows.. so the solution should work for both (or just give two solutions )
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  2. #2

    Getting textual input

    There is a link to a chat program that is written in C that you may want to have a look @
    http://www.libsdl.org/
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL