README-raspberrypi.txt
changeset 7778 a571a9947869
parent 7753 e4c38f17bfad
child 7806 03e6aaea8347
     1.1 --- a/README-raspberrypi.txt	Thu Oct 03 03:31:05 2013 -0700
     1.2 +++ b/README-raspberrypi.txt	Thu Oct 03 10:28:10 2013 -0300
     1.3 @@ -20,7 +20,7 @@
     1.4   Raspbian Build Dependencies
     1.5  ================================================================================
     1.6  
     1.7 -sudo apt-get install libudev-dev libasound2-dev
     1.8 +sudo apt-get install libudev-dev libasound2-dev libdbus-1-dev
     1.9  
    1.10  You also need the VideoCore binary stuff that ships in /opt/vc for EGL and 
    1.11  OpenGL ES 2.x, it usually comes pre installed, but in any case:
    1.12 @@ -28,6 +28,14 @@
    1.13  sudo apt-get install libraspberrypi0 libraspberrypi-bin libraspberrypi-dev
    1.14  
    1.15  ================================================================================
    1.16 + No input
    1.17 +================================================================================
    1.18 +
    1.19 +Make sure you belong to the "input" group.
    1.20 +
    1.21 +    sudo usermod -aG input `whoami`
    1.22 +
    1.23 +================================================================================
    1.24   No HDMI Audio
    1.25  ================================================================================
    1.26  
    1.27 @@ -40,9 +48,40 @@
    1.28  Reference: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5062
    1.29  
    1.30  ================================================================================
    1.31 + Text Input API support
    1.32 +================================================================================
    1.33 +
    1.34 +The Text Input API is supported, with translation of scan codes done via the
    1.35 +kernel symbol tables. For this to work, SDL needs access to a valid console.
    1.36 +If you notice there's no SDL_TEXTINPUT message being emmited, double check that
    1.37 +your app has read access to one of the following:
    1.38 +    
    1.39 +* /proc/self/fd/0
    1.40 +* /dev/tty
    1.41 +* /dev/tty[0...6]
    1.42 +* /dev/vc/0
    1.43 +* /dev/console
    1.44 +
    1.45 +This is usually not a problem if you run from the physical terminal (as opposed
    1.46 +to running from a pseudo terminal, such as via SSH). If running from a PTS, a 
    1.47 +quick workaround is to run your app as root or add yourself to the tty group,
    1.48 +then re login to the system.
    1.49 +
    1.50 +   sudo usermod -aG tty `whoami`
    1.51 +    
    1.52 +The keyboard layout used by SDL is the same as the one the kernel uses.
    1.53 +To configure the layout on Raspbian:
    1.54 +    
    1.55 +    sudo dpkg-reconfigure keyboard-configuration
    1.56 +    
    1.57 +To configure the locale, which controls which keys are interpreted as letters,
    1.58 +this determining the CAPS LOCK behavior:
    1.59 +
    1.60 +    sudo dpkg-reconfigure locales
    1.61 +
    1.62 +================================================================================
    1.63   Notes
    1.64  ================================================================================
    1.65  
    1.66  * Building has only been tested natively (i.e. not cross compiled). Cross
    1.67    compilation might work though, feedback is welcome!
    1.68 -* No Text Input yet.
    1.69 \ No newline at end of file