Urban Terror Forums: OS X & MWHEEL binds - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

OS X & MWHEEL binds Rate Topic: -----

(they don't work right)

#1 User is offline   iynque Icon

  •   verified user   
  • Account: iynque
  • Main tag:
  • Country:
  • Joined: 11-August 13
  • Posts: 140

Posted 31 March 2014 - 07:08 PM

I was working on a script to allow the mouse wheel to scroll through weapons, including the knife.

I never use the scroll wheel to change weapons because with my Apple trackpad and Magic Mouse, the MWHEELUP and MWHEELDOWN binds are just waaaaay to sensitive—a slight movement on my Apple Magic Mouse surface and I flip through every weapon 17 times. I have to just disable mouse wheel binds or my guns start changing as my fingers move slightly on the touch surface as I play.

What I was working on was adding dummy actions in-between switching weapons to try to artificially lower the sensitivity. So, from this original script (which works, if anyone wants to use it):

bind MWHEELUP       "vstr iy_wheelup"
bind MWHEELDOWN     "vstr iy_wheeldown"
 
set iy_wheelup      "vstr iy_weap01"
set iy_wheeldown    "vstr iy_weap04"
 
set iy_weap01       "ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife; set iy_wheelup vstr iy_weap02; set iy_wheeldown vstr iy_weap05"
set iy_weap02       "ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade; set iy_wheelup vstr iy_weap03; set iy_wheeldown vstr iy_weap01"
set iy_weap03       "ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; set iy_wheelup vstr iy_weap04; set iy_wheeldown vstr iy_weap02"
set iy_weap04       "ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; set iy_wheelup vstr iy_weap05; set iy_wheeldown vstr iy_weap03"
set iy_weap05       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; set iy_wheelup vstr iy_weap01; set iy_wheeldown vstr iy_weap04"


To this, which artificially slows mouse wheel scrolling:

bind MWHEELUP       "vstr iy_wheelup"
bind MWHEELDOWN     "vstr iy_wheeldown"

set iy_wheelup      "vstr iy_weap01"
set iy_wheeldown    "vstr iy_weap04"

set iy_weap01   "set iy_wheelup vstr iy_weap02; set iy_wheeldown vstr iy_weap50; ut_echo ^7[^1Wheel 01- changing to knife^7];ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife"
set iy_weap02   "set iy_wheelup vstr iy_weap03; set iy_wheeldown vstr iy_weap01; ut_echo ^7[^4Wheel 02^7]"
set iy_weap03   "set iy_wheelup vstr iy_weap04; set iy_wheeldown vstr iy_weap02; ut_echo ^7[^4Wheel 03^7]"
set iy_weap04   "set iy_wheelup vstr iy_weap05; set iy_wheeldown vstr iy_weap03; ut_echo ^7[^4Wheel 04^7]"
set iy_weap05   "set iy_wheelup vstr iy_weap06; set iy_wheeldown vstr iy_weap04; ut_echo ^7[^4Wheel 05^7]"
set iy_weap06   "set iy_wheelup vstr iy_weap07; set iy_wheeldown vstr iy_weap05; ut_echo ^7[^4Wheel 06^7]"
set iy_weap07   "set iy_wheelup vstr iy_weap08; set iy_wheeldown vstr iy_weap06; ut_echo ^7[^4Wheel 07^7]"
set iy_weap08   "set iy_wheelup vstr iy_weap09; set iy_wheeldown vstr iy_weap07; ut_echo ^7[^4Wheel 08^7]"
set iy_weap09   "set iy_wheelup vstr iy_weap10; set iy_wheeldown vstr iy_weap08; ut_echo ^7[^4Wheel 09^7]"
set iy_weap10   "set iy_wheelup vstr iy_weap11; set iy_wheeldown vstr iy_weap09; ut_echo ^7[^4Wheel 10^7]"
set iy_weap11   "set iy_wheelup vstr iy_weap12; set iy_wheeldown vstr iy_weap10; ut_echo ^7[^1Wheel 11- changing to grenade^7];ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade"
set iy_weap12   "set iy_wheelup vstr iy_weap13; set iy_wheeldown vstr iy_weap11; ut_echo ^7[^4Wheel 12^7]"
set iy_weap13   "set iy_wheelup vstr iy_weap14; set iy_wheeldown vstr iy_weap12; ut_echo ^7[^4Wheel 13^7]"
set iy_weap14   "set iy_wheelup vstr iy_weap15; set iy_wheeldown vstr iy_weap13; ut_echo ^7[^4Wheel 14^7]"
set iy_weap15   "set iy_wheelup vstr iy_weap16; set iy_wheeldown vstr iy_weap14; ut_echo ^7[^4Wheel 15^7]"
set iy_weap16   "set iy_wheelup vstr iy_weap17; set iy_wheeldown vstr iy_weap15; ut_echo ^7[^4Wheel 16^7]"
set iy_weap17   "set iy_wheelup vstr iy_weap18; set iy_wheeldown vstr iy_weap16; ut_echo ^7[^4Wheel 17^7]"
set iy_weap18   "set iy_wheelup vstr iy_weap19; set iy_wheeldown vstr iy_weap17; ut_echo ^7[^4Wheel 18^7]"
set iy_weap19   "set iy_wheelup vstr iy_weap20; set iy_wheeldown vstr iy_weap18; ut_echo ^7[^4Wheel 19^7]"
set iy_weap20   "set iy_wheelup vstr iy_weap21; set iy_wheeldown vstr iy_weap19; ut_echo ^7[^4Wheel 20^7]"
set iy_weap21   "set iy_wheelup vstr iy_weap22; set iy_wheeldown vstr iy_weap20; ut_echo ^7[^1Wheel 21- changing to sidearm^7];ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm"
set iy_weap22   "set iy_wheelup vstr iy_weap23; set iy_wheeldown vstr iy_weap21; ut_echo ^7[^4Wheel 22^7]"
set iy_weap23   "set iy_wheelup vstr iy_weap24; set iy_wheeldown vstr iy_weap22; ut_echo ^7[^4Wheel 23^7]"
set iy_weap24   "set iy_wheelup vstr iy_weap25; set iy_wheeldown vstr iy_weap23; ut_echo ^7[^4Wheel 24^7]"
set iy_weap25   "set iy_wheelup vstr iy_weap26; set iy_wheeldown vstr iy_weap24; ut_echo ^7[^4Wheel 25^7]"
set iy_weap26   "set iy_wheelup vstr iy_weap27; set iy_wheeldown vstr iy_weap25; ut_echo ^7[^4Wheel 26^7]"
set iy_weap27   "set iy_wheelup vstr iy_weap28; set iy_wheeldown vstr iy_weap26; ut_echo ^7[^4Wheel 27^7]"
set iy_weap28   "set iy_wheelup vstr iy_weap29; set iy_wheeldown vstr iy_weap27; ut_echo ^7[^4Wheel 28^7]"
set iy_weap29   "set iy_wheelup vstr iy_weap30; set iy_wheeldown vstr iy_weap28; ut_echo ^7[^4Wheel 29^7]"
set iy_weap30   "set iy_wheelup vstr iy_weap31; set iy_wheeldown vstr iy_weap29; ut_echo ^7[^4Wheel 30^7]"
set iy_weap31   "set iy_wheelup vstr iy_weap32; set iy_wheeldown vstr iy_weap30; ut_echo ^7[^1Wheel 31- changing to secondary^7];ut_weaptoggle primary; ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary"
set iy_weap32   "set iy_wheelup vstr iy_weap33; set iy_wheeldown vstr iy_weap31; ut_echo ^7[^4Wheel 32^7]"
set iy_weap33   "set iy_wheelup vstr iy_weap34; set iy_wheeldown vstr iy_weap32; ut_echo ^7[^4Wheel 33^7]"
set iy_weap34   "set iy_wheelup vstr iy_weap35; set iy_wheeldown vstr iy_weap33; ut_echo ^7[^4Wheel 34^7]"
set iy_weap35   "set iy_wheelup vstr iy_weap36; set iy_wheeldown vstr iy_weap34; ut_echo ^7[^4Wheel 35^7]"
set iy_weap36   "set iy_wheelup vstr iy_weap37; set iy_wheeldown vstr iy_weap35; ut_echo ^7[^4Wheel 36^7]"
set iy_weap37   "set iy_wheelup vstr iy_weap38; set iy_wheeldown vstr iy_weap36; ut_echo ^7[^4Wheel 37^7]"
set iy_weap38   "set iy_wheelup vstr iy_weap39; set iy_wheeldown vstr iy_weap37; ut_echo ^7[^4Wheel 38^7]"
set iy_weap39   "set iy_wheelup vstr iy_weap40; set iy_wheeldown vstr iy_weap38; ut_echo ^7[^4Wheel 39^7]"
set iy_weap40   "set iy_wheelup vstr iy_weap41; set iy_wheeldown vstr iy_weap39; ut_echo ^7[^4Wheel 40^7]"
set iy_weap41   "set iy_wheelup vstr iy_weap42; set iy_wheeldown vstr iy_weap40; ut_echo ^7[^1Wheel 41- changing to primary^7];ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary"
set iy_weap42   "set iy_wheelup vstr iy_weap43; set iy_wheeldown vstr iy_weap41; ut_echo ^7[^4Wheel 42^7]"
set iy_weap43   "set iy_wheelup vstr iy_weap44; set iy_wheeldown vstr iy_weap42; ut_echo ^7[^4Wheel 43^7]"
set iy_weap44   "set iy_wheelup vstr iy_weap45; set iy_wheeldown vstr iy_weap43; ut_echo ^7[^4Wheel 44^7]"
set iy_weap45   "set iy_wheelup vstr iy_weap46; set iy_wheeldown vstr iy_weap44; ut_echo ^7[^4Wheel 45^7]"
set iy_weap46   "set iy_wheelup vstr iy_weap47; set iy_wheeldown vstr iy_weap45; ut_echo ^7[^4Wheel 46^7]"
set iy_weap47   "set iy_wheelup vstr iy_weap48; set iy_wheeldown vstr iy_weap46; ut_echo ^7[^4Wheel 47^7]"
set iy_weap48   "set iy_wheelup vstr iy_weap49; set iy_wheeldown vstr iy_weap47; ut_echo ^7[^4Wheel 48^7]"
set iy_weap49   "set iy_wheelup vstr iy_weap50; set iy_wheeldown vstr iy_weap48; ut_echo ^7[^4Wheel 49^7]"
set iy_weap50   "set iy_wheelup vstr iy_weap01; set iy_wheeldown vstr iy_weap49; ut_echo ^7[^4Wheel 50^7]"


The problem is, I could only ever scroll one way. Down. I noticed that even when I was scrolling up, the "Wheel ##" debug messages I added were always counting down.

bind MWHEELUP           "ut_echo ^7[^5MWHEELUP^7]"
bind MWHEELDOWN         "ut_echo ^7[^6MWHEELDOWN^7]"


When I use these binds to show when the MWHEELUP and MWHEELDOWN binds are being triggered, I can see that scrolling up and scrolling down trigger MWHEELDOWN. Speed seems to be a factor: scroll up at slow-to-moderate speed, and you always get MWHEELDOWN. Scroll swiftly up, and you always get MWHEELUP. You can scroll at a middling pace and get a mix of MWHEELDOWN and MWHEELUP triggered.

So that was confusing...

I think it must have something to do with OS X "reversing" the scroll direction, but I'm not sure. When I boot my Mac into Windows 8, using the same Magic Mouse or trackpad to scroll, down always triggers down, up always triggers up. It's just under Mac OS X that I get "up = down" anytime I scroll in a controlled manner. Odd though that it wouldn't cause any "down = up" actions ever...

I guess I don't expect this to be fixed for 4.2; I'll just go back to not using mouse wheel binds. I figured I would point it out though, in case these two issues (Apple devices scrolling too fast, and only scrolling down under OS X) might also appear in UrT HD.
|FA|iynque 😈 Fallin-Angels

#2 User is offline   KarlMariaSeeberg Icon

Posted 31 March 2014 - 11:01 PM

i am amazed to hear that people are trying to use the magic mouse to play urt... it's actually hilarious ..

kudos! though for working on a script..
if you don't like uptown, you are basically hating urban terror.

#3 User is offline   iynque Icon

  •   verified user   
  • Account: iynque
  • Main tag:
  • Country:
  • Joined: 11-August 13
  • Posts: 140

Posted 01 April 2014 - 12:57 AM

I just use what I have. I think it's hilarious people will buy a "gaming mouse" :rolleyes:
|FA|iynque 😈 Fallin-Angels

#4 User is offline   KarlMariaSeeberg Icon

Posted 01 April 2014 - 11:13 AM

oh ..you don't even have to go that far...
every office mouse has one major advantage: 2 physical buttons you can push at the same time ..
there really is not much you can invest money in to catch up with the better gamers of this game..
a decent network connection, a rig that provides stable frames and a decent mouse..

additoinally, if you are on osx .. i urge you to use smoothmouse > smoothmouse.com
will give you raw input (though they don't call it that)

(sorry for the derail)
if you don't like uptown, you are basically hating urban terror.

#5 User is offline   iynque Icon

  •   verified user   
  • Account: iynque
  • Main tag:
  • Country:
  • Joined: 11-August 13
  • Posts: 140

Posted 02 April 2014 - 07:14 PM

I tried with a crappy microsoft mouse and it works just fine...

Apparently it's just Apple devices, and not OS X... So really... not even worth considering xD
|FA|iynque 😈 Fallin-Angels

bullet_loaderAdvertisement

#6 User is offline   KarlMariaSeeberg Icon

Posted 02 April 2014 - 09:44 PM

View Postiynque, on 02 April 2014 - 07:14 PM, said:

I tried with a crappy microsoft mouse and it works just fine...

Apparently it's just Apple devices, and not OS X... So really... not even worth considering xD


can not compute..
if you don't like uptown, you are basically hating urban terror.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.urbanterror.info/members/donate/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942