Reply
Thread Tools
Posts: 34 | Thanked: 5 times | Joined on Jan 2010
#31
Hello,

...and thank you all for this next wow moment in my life with the N900! Tried Wiicontrol yesterday together with DrNokSNES and it works like a charm..

My only problem is: I keep hitting the B button together with the dpad while playing Mario Kart, which kicks me out of the game and sends me back to the main screen of DrNokSNES. Is there a way to prevent it from using mapping_b together with mapping_snes and/or mapping_l etc.? Or do I have to set mapping_b to screen taps or similar ?

boudjere
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,466 times | Joined on Jan 2010 @ Australia Mate
#32
I originally thought the B button didnt work but it seems to be a shift like button. B + Left is exit and B + Down is fullscreen I think... Havent tried disabling this but the setting is in the wiicontrol file, have a look.
 
Posts: 34 | Thanked: 5 times | Joined on Jan 2010
#33
I tried a few things, including commenting out

Code:
pressed[bb]=True
in

Code:
            for bb in buttons:
              if (Wii.buttonmask & buttonmap[bb]):          
                  if (Wii.buttonmask & buttonmap["B"]):
                      ExecuteScript(mapping_b[bb])
                      pressed[bb]=True                      
                  else:
                      ExecuteScript(mapping[bb])
                      pressed[bb]=True
                  
              elif (not (Wii.buttonmask & buttonmap[bb])):
                      if pressed[bb]==True:
                          pressed[bb]=False                          
                          ExecuteReleasedScript(mapping[bb])
                          device.display_state_on()
and sending all mapping_b to a single (unused) key. But all of these efforts did not change anything.

Any more ideas?

Last edited by boudjere; 2010-02-12 at 10:29. Reason: Formatting
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,466 times | Joined on Jan 2010 @ Australia Mate
#34
did you try changing any of the expressions from true > false - or false > true?
 
Posts: 4 | Thanked: 0 times | Joined on Jan 2010 @ Norway/Hungary
#35
f2thak,

I have a different keyboard layout which requires me to use key-combos in order to input the up and down arrow.

As I mentioned in my post:

http://talk.maemo.org/showpost.php?p...3&postcount=27

I have different symbols where you have the up and down arrow, namely a scandinavian letter "ae" and puntuation mark.

Due to this problem I'm only able to input down and right with the wiimote.
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,466 times | Joined on Jan 2010 @ Australia Mate
#36
i think you need to set your keyboard layout to US...
 
Posts: 4 | Thanked: 0 times | Joined on Mar 2010
#37
apt-get install wiicontrol

E: Couldn't find package wiicontrol
 
Posts: 188 | Thanked: 28 times | Joined on Jun 2007
#38
I'm trying to map a key for mario to jump, but not having any luck. There are to keys actually... On the keyboard it x, and d, but I cant figure out how to map them in the config. Can someone help me out?
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,466 times | Joined on Jan 2010 @ Australia Mate
#39
bazz



--------------------------------------------------------------------------------------
How To Configure Controls
--------------------------------------------------------------------------------------

you need to edit "/usr/bin/wiicontrol" file.

scroll to section shown below. (In _CODE-CODE_ section)

"mapping" section is for gamepad only mode
"mapping_l" section is for gamepad + gyro mode (accelerometers)

to change a specific button, (e.g. gamepad mode "A" button) you need to change only the key name within the ["a ???"] section, ??? being the key name. (e.g. 'A': ["a Q"] would set button A to the Q key.)

then in your games/apps just set the keys to whichever you set.

this should work!


_________CODE__________
........................
mapping={
'U': ["a Left"], # dpad left
'D': ["a Right"], # dpad right
'L': ["a Down"], # dpad down
'R': ["a Up"], # dpad up
'A': ["a e"], # A
'+': ["a q"], # +
'-': ["a Escape"], # -
'1': ["a a"], # 1
'2': ["a w"], # 2
'H': ["a KP_Enter"], # home
'GU': ["a Up"], # gyro up
'GD': ["a Down"], # gyro down
'GL': ["a Left"], # gyro left
'GR': ["a Right"], # gyro right
'Z': ["a z"], # unknown
'C': ["a x"] # unknown
}

mapping_l={
'U': ["a s"], # dpad left
'D': ["a d"], # dpad right
'L': ["a Down"], # dpad down
'R': ["a Up"], # dpad up
'A': ["a e"], # A
'+': ["a q"], # +
'-': ["a Escape"], # -
'1': ["a a"], # 1
'2': ["a w"], # 2
'H': ["a KP_Enter"], # home
'GU': [""], # gyro up
'GD': [""], # gyro down
'GL': ["a Left"], # gyro left
'GR': ["a Right"], # gyro right
'Z': ["a z"], # unknown
'C': ["a x"] # unknown
........................
__________CODE__________

Last edited by F2thaK; 2010-03-09 at 02:23.
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,466 times | Joined on Jan 2010 @ Australia Mate
#40
Originally Posted by KNEjk View Post
apt-get install wiicontrol

E: Couldn't find package wiicontrol
install thru app manager mate
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:07.