WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Nunchuk-Stick as mouse
Goto page 1, 2  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid
View previous topic :: View next topic  
Author Message
dschie



Joined: 16 May 2007
Posts: 1

Digg It
PostPosted: Wed May 16, 2007 5:48 pm    Post subject: Nunchuk-Stick as mouse

Hi,
i like to control my mousepointer with the nunchuk-stick, so i tried this:
Code:
Nunchuk.Stick.X = REL_X
Nunchuk.Stick.Y = REL_Y

but my pointer keeps sticking in the lower right corner of my screen. I tried with ~ABS_X an Y, which works, but sucks.

Any ideas?
Back to top
View user's profile Send private message
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: Thu May 17, 2007 8:03 pm    Post subject:

Can you be more specific? Why does it suck?
_________________
"I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid
Back to top
View user's profile Send private message
miv



Joined: 13 May 2007
Posts: 4

Digg It
PostPosted: Sat May 19, 2007 11:48 am    Post subject:

map BTN_LEFT like writen in README:

An event device is always created. A mouse device is created if REL_X, REL_Y, and BTN_LEFT symbols are mapped (~ABS_X and ~ABS_Y effectively map REL_X and REL_Y, respectively). A joystick device is created if ABS_X is mapped.
Plugins
Back to top
View user's profile Send private message
HemoGoblin



Joined: 01 Jun 2007
Posts: 2

Digg It
PostPosted: Fri Jun 01, 2007 1:49 am    Post subject: Same Problem

I'm having the same problem as dschie, but I've got REL_X, REL_Y and BTN_LEFT mapped

Here's the relevant config file:



#buttons

#Wiimote.A = BTN_LEFT
#Wiimote.B = BTN_RIGHT
Wiimote.Up = KEY_F10
Wiimote.Down = KEY_F9
Wiimote.Left = KEY_LEFT
Wiimote.Right = KEY_RIGHT
Wiimote.Minus = KEY_F11
Wiimote.Plus = KEY_F12
Wiimote.Home = KEY_Q
Wiimote.1 = KEY_SPACE
Wiimote.2 = KEY_F

Nunchuk.C = BTN_LEFT
Nunchuk.Z = BTN_RIGHT
Nunchuk.Stick.X = REL_X
Nunchuk.Stick.Y = REL_Y

Classic.Up = KEY_UP
Classic.Down = KEY_DOWN
Classic.Left = KEY_LEFT
Classic.Right = KEY_RIGHT
Classic.Minus = KEY_FN_F9
Classic.Plus = KEY_FN_F10
Classic.Home = KEY_HOME
#Classic.A = BTN_LEFT
#Classic.B = BTN_RIGHT
#Classic.X =
#Classic.Y =
#Classic.ZL =
#Classic.ZR =
#Classic.L =
#Classic.R =


Any help would be appreciated.
Back to top
View user's profile Send private message Visit poster's website
miv



Joined: 13 May 2007
Posts: 4

Digg It
PostPosted: Fri Jun 01, 2007 9:59 am    Post subject:

Hi!
Are you loading this file (wminput -c file) ?
Maybe try ~ABS?
Back to top
View user's profile Send private message
HemoGoblin



Joined: 01 Jun 2007
Posts: 2

Digg It
PostPosted: Sat Jun 02, 2007 12:27 am    Post subject:

~ABS doesn't seem to do anything differently from ABS; yes, that is the configuration file that loads.

I'm running debian unstable, if that helps at all. I suppose I'm running debian unstable even if it doesn't help.
Back to top
View user's profile Send private message Visit poster's website
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: Mon Jun 04, 2007 11:49 pm    Post subject:

~ABS is the correct axis for the nunchuk (as well as classic controller) stick. It isn't a zero-centered axis, so using it as a relative axis will always dump your cursor to the lower right corner. As noted in the README and above, use ~ABS rather than ABS if you want to create a mouse event device.

To rephrase the earlier question: What does ~ABS do? At this point, all I know is that it "sucks" for dschie, which is hardly a basis for diagnosis.
_________________
"I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group