[odamex-bug-reporter] [Bug 886] mouse vs keyboard binds

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Sun, 29 Jul 2012 18:21:52 +0000

http://odamex.net/bugs/show_bug.cgi?id=886

--- Comment #4 from Amateur Spammer <ijgjgr@xxxxxxx> 2012-07-29 18:21:52 UTC ---
[2012.07.29, 21:46:26]    JKist3    so its not just sr50
[2012.07.29, 21:46:32]    JKist3    regular keys repeat actions
[2012.07.29, 21:46:35]    JKist3    mice keys dont
[2012.07.29, 21:46:46]    JKist3    mice keys should repeat as well
[2012.07.29, 21:47:00]    HeX9109    you mean if you fire with mouse1 it doesnt
rapid fire?
[2012.07.29, 21:47:11]    JKist3    no it does...
[2012.07.29, 21:47:14]    JKist3    just do this
[2012.07.29, 21:47:29]    JKist3    bind "k" "echo keyboard"
[2012.07.29, 21:47:44]    JKist3    bind "mouse2" "echo mouse"
[2012.07.29, 21:47:49]    JKist3    and u will see the issue
[2012.07.29, 21:47:57]    Ralphis_    try using + on the command?
[2012.07.29, 21:47:59]    Ralphis_    + and -
[2012.07.29, 21:48:01]    JKist3    mouse and keyboard buttons behave
differently and this is not good
[2012.07.29, 21:48:24]    JKist3    yeah ralphis thats not really the issue
[2012.07.29, 21:48:31]    JKist3    i submitted a bug report on it last night
[2012.07.29, 21:48:57]    mnbvzxc    but why is it needed
[2012.07.29, 21:49:13]    JKist3    http://odamex.net/bugs/show_bug.cgi?id=886
[2012.07.29, 21:49:28]    JKist3    mnbvzxc do you actually code odamex at all
[2012.07.29, 21:50:37]    mnbvzxc    nope
[2012.07.29, 21:51:31]    JKist3    well its important to have mouse and
keyboard keys behave the same so ppl dont get confused
[2012.07.29, 21:51:43]    JKist3    liek if you bound something to mouse2
[2012.07.29, 21:51:53]    JKist3    ud expect it to function the same way as if
u bound it to k right
[2012.07.29, 21:54:29]    mnbvzxc    yes, but the keyboard repeating is nod
handled in odamex code, odamex just requests the key to be repeated from SDL
[2012.07.29, 21:54:48]    mnbvzxc    and btw it was me who talked with you on
the bug
[2012.07.29, 21:56:45]    mnbvzxc    can be done of course, would be nice to
have, but u still haven't explained how it breaks sr50
[2012.07.29, 21:58:54]    JKist3    it depends on how u bind it
[2012.07.29, 21:59:07]    Ralphis_    why don't you show how you are trying to
bind it
[2012.07.29, 21:59:10]    Ralphis_    on the bug
[2012.07.29, 21:59:17]    -->|    TheSpider
(~TheSpider@xxxxxxxxxxxxxxxxxxxxxxxxxxx) has joined #odamex
[2012.07.29, 21:59:24]    JKist3    Ralphis this is not for me u know...
[2012.07.29, 21:59:32]    JKist3    hang on ill show u
[2012.07.29, 21:59:53]    Ralphis_    well then have the person who you are
helping explain their bind
[2012.07.29, 21:59:59]    JKist3    alias "+sr50l" "+strafe\;+left\; echo
+sr50l"
[2012.07.29, 22:00:00]    JKist3    alias "+sr50r" "+strafe\;+right\; echo
+sr50r"
[2012.07.29, 22:00:01]    JKist3    alias "-sr50l" "-strafe\;-left\; echo
-sr50l"
[2012.07.29, 22:00:02]    JKist3    alias "-sr50r" "-strafe\;-right\; echo
-sr50r"
[2012.07.29, 22:00:21]    JKist3    bind "mouse2" "+sr50r"
[2012.07.29, 22:00:28]    JKist3    bind "s" "+sr50l"
[2012.07.29, 22:00:31]    Ralphis_    you should put that in the bug (unless
you already have today)
[2012.07.29, 22:00:52]    JKist3    no i didnt... but its really irrelevant...
i mean there are many other binds that could do something totally different
[2012.07.29, 22:00:54]    JKist3    and still fuck up
[2012.07.29, 22:01:05]    JKist3    it doesnt have to be sr50
[2012.07.29, 22:01:09]    Ralphis_    except it gives the team a way to test
exactly your problem
[2012.07.29, 22:01:16]    JKist3    sure
[2012.07.29, 22:01:20]    Ralphis_    so it is useful
[2012.07.29, 22:01:39]    Ralphis_    what is the echo for
[2012.07.29, 22:01:50]    JKist3    so show you whats happening
[2012.07.29, 22:02:05]    JKist3    has no in game behavior
[2012.07.29, 22:02:13]    JKist3    just prints to the console which command is
being called
[2012.07.29, 22:02:28]    JKist3    which is why i said
[2012.07.29, 22:02:29]    JKist3    12:47 <JKist3>    bind "k" "echo keyboard"
[2012.07.29, 22:02:30]    JKist3    12:47 <JKist3>    bind "mouse2" "echo
mouse"
[2012.07.29, 22:02:39]    JKist3    that will show u the problem clearly
[2012.07.29, 22:02:46]    JKist3    if u just test that out in a game
[2012.07.29, 22:03:19]    mnbvzxc    aha, so when you want to switch from left
sr50 to right, and first press the mouse button, then release "s", it doesn't
work?
[2012.07.29, 22:03:41]    JKist3    yeah it starts turning u in a circle
[2012.07.29, 22:03:51]    mnbvzxc    i have an idea
[2012.07.29, 22:04:18]    Ralphis_    is this even something that can be fixed
prior to sending the input to sdl
[2012.07.29, 22:04:33]    JKist3    i have no clue...
[2012.07.29, 22:04:42]    JKist3    all i know is it u hold down a keyboard key
[2012.07.29, 22:04:48]    JKist3    the action gets sent over and over and over
again
[2012.07.29, 22:04:53]    JKist3    with a mouse it only gets sent once
[2012.07.29, 22:05:20]    mnbvzxc    er, ralphis. Input is what odamex *gets*
from sdl
[2012.07.29, 22:05:23]    JKist3    this bind works on zdaemon.... but not on
odamex bc of this behavior
[2012.07.29, 22:05:42]    mnbvzxc    and as I said, I have an idea
[2012.07.29, 22:05:45]    mnbvzxc    let me try
[2012.07.29, 22:07:36]    Ralphis_    that's what I meant
[2012.07.29, 22:07:45]    Ralphis_    I'm off my rocker atm
[2012.07.29, 22:09:02]    JKist3    is there any reason why mouse commands cant
be repeated?
[2012.07.29, 22:09:12]    JKist3    you had submitted the original bug for the
keyboard repeating ralphis
[2012.07.29, 22:09:55]    Ralphis_    If there is a reason why it couldn't be
repeated, my gut tells me it would be an sdl limitation
[2012.07.29, 22:10:06]    Ralphis_    but I don't have the technical background
to be able to answer that off the top of my head
[2012.07.29, 22:10:15]    JKist3    yeah
[2012.07.29, 22:10:22]    JKist3    hpefully its just an easy fix
[2012.07.29, 22:19:25]    |<--    JohnZombie has left quakenet (Quit: Quitting)

sorry for the badly formatted log

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: