Dualshock 3 Controller with a mini-USB-cable |
We are going to connect the Controller via USB, so you make sure your Sixaxis Controller is plugged in with a mini-USB-cable.
First of all we install the
joystick
Package viasudo apt-get install joystick
In order to make sure Ubuntu is able to read the Controller input executecat /dev/input/js0
Now move the sticks or press some buttons on the Controller. The text output (which is the raw controller data) in your terminal should change.
Qt's logo |
sudo apt-get install libqt4-core libqt4-dev qt4-dev-tools qt4-designer qt4-doc
We will also need these packages
sudo apt-get install libxtst6 libxtst-dev
Now comes the more complicated part: Download QJoyPad. Open up a Terminal an execute the following commands in order to extract the source.
cd ~/Downloads
tar xzf qjoypad-4.1.0.tar.gz
compile the source:
cd cd qjoypad-4.1.0/src/
./config
make
sudo make install
QJoyPad will start minimized in the system tray, but Natty doesn't allow every application to show up in the system tray. We will change these settings; execute:
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
After logging out and in again or simply restarting unity you will be able to execute qjoypad
. Now you can take input from the controller translate it into key strokes or mouse actions. The UI should be self explanatory ;)
4 Kommentare:
hey dude ive got a problem when i go to the command tar xzf qjoypad-4.1.0.tar.gz it tell me this
derdomo@derdomo-Inspiron-1018:~/Descargas$ tar xzf qjoypad-4.1.0.tar.gz
derdomo@derdomo-Inspiron-1018:~/Descargas$ what now
derdomo@derdomo-Inspiron-1018:~/Descargas/qjoypad-4.1.0/src$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DDEVDIR=\"/dev/input\" -DICON24=\"/usr/local/share/pixmaps/qjoypad/icon24.png\" -DICON64=\"/usr/local/share/pixmaps/qjoypad/icon64.png\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o axis.o axis.cpp
make: g++: No se encontró el programa
make: *** [axis.o] Error 127
derdomo@derdomo-Inspiron-1018:~/Descargas/qjoypad-4.1.0/src$ sudo make install
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DDEVDIR=\"/dev/input\" -DICON24=\"/usr/local/share/pixmaps/qjoypad/icon24.png\" -DICON64=\"/usr/local/share/pixmaps/qjoypad/icon64.png\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o axis.o axis.cpp
make: g++: No se encontró el programa
make: *** [axis.o] Error 127
derdomo@derdomo-Inspiron-1018:~/Descargas/qjoypad-4.1.0/src$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dude this was the 8th and 9th command HELP
FORGOT everythig i say
@loltomeh123
How you fix it???
Kommentar veröffentlichen