Hi wx'rs
I'm new to wxPython and this list.
I have an almost finished app to which I'm trying to add control trhough
joystick without success.
I'm trying the wxJoystick from the demo package wxPythonDemo 2.4 version
either got from the web or the debian package but the joystick doesn't
seem to work.
I am on debian sid.
If I run jstest /dev/js0 or /dev/js1 (a symlink to the first) I get the
device working, so I am confused.
Also other application (PD = Pure Data) works correctly with the same
joystick. At the moment it is an analgo (Agiler) but I tried briefly
before with a Logitech Wingman Rumblepad to no avail.
I tried stracing the joystick demo app and it seems opening /dev/js0 and
later both, but no expected results though.
here is part of the strace in the case it might help:
···
---------------------------------------------------------------
read(5, "[Icon Theme]\nInherits=core\n", 4096) = 27
close(5) = 0
munmap(0x404eb000, 4096) = 0
open("/dev/js0", O_RDWR|O_LARGEFILE) = 5
sched_get_priority_max(0) = 0
sched_get_priority_min(0) = 0
pipe([7, 8]) = 0
clone(child_stack=0x83e0258,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 2164
write(8, "\10\336=\10\5\0\0\0\350\325\377\277H\353\203@\30\326=\10"...,
148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(8, "\0o\3@\0\0\0\0p\327\377\277\0\342\211@h\340=\10\0\0\0\200"...,
148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system
call)
sigreturn() = ? (mask now [RTMIN])
---------------------------------------------------------------
and later:
---------------------------------------------------------------
gettimeofday({1084367810, 254220}, NULL) = 0
ioctl(5, JSIOCGAXES, 0xbfffda80) = 0
gettimeofday({1084367810, 254492}, NULL) = 0
ioctl(5, JSIOCGAXES, 0xbfffda80) = 0
gettimeofday({1084367810, 254763}, NULL) = 0
gettimeofday({1084367810, 255127}, NULL) = 0
open("/dev/js0", O_RDONLY|O_LARGEFILE) = 9
close(9) = 0
open("/dev/js1", O_RDONLY|O_LARGEFILE) = 9
close(9) = 0
gettimeofday({1084367810, 256420}, NULL) = 0
---------------------------------------------------------------
any ideas?
please, let me know if I should move to wxPython 2.5 or any other
directions.
thanks in advance!
Ramiro.
--
rama <medialist@xicnet.com>