Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Sticky arrow keys (figured out cause)  (Read 7134 times)

Random832

  • Bay Watcher
    • View Profile
Sticky arrow keys (figured out cause)
« on: November 14, 2008, 11:24:22 pm »

Some people with laptops have noticed (I'd certainly heard of the bug before it happened to me) that the arrow keys or the numeric keypad keys sometimes get "stuck" and have to be cleared by pressing the same key again. I have discovered the reason this happens. When you press down on a key and then release or press the Fn key before releasing the key, the "key release" message somehow gets scrambled and DF does not register it. The key does stop repeating in normal applications, since key repeats are registered by sending more key press events, but DF apparently acts differently, handling its own key repeats (and thus continuing to do so after the missed key release event). Switching between Fn numpad +-*/ and regular other keys is the most likely time for this to happen.

Workaround: either be careful about when you press or release the Fn key to operate the numeric keypad, change your mappings for the +-*/ functions, or get a real numeric keypad.

Fix: change the way repeating keys are handled in DF, somehow - without knowing more about how input is handled I can't really say anything more.
Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #1 on: November 17, 2008, 12:13:02 pm »

To hell with the [Fn] key. I remapped all the numpad-exclusive keys to easier-to-push keys long ago.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

Random832

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #2 on: November 17, 2008, 01:28:53 pm »

To hell with the [Fn] key. I remapped all the numpad-exclusive keys to easier-to-push keys long ago.

Meh, it's still a bug.

But anyway, what are your mappings? There's a scarcity of unused keys on a laptop keyboard.
Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #3 on: November 17, 2008, 09:36:42 pm »

The only numpad-exclusive buttons I can think of offhand were the secondary list scroll keys (+, -, *, /), which I remapped to the (-, =, _, +) keys to the right of the number row.

I also remapped (3) and (9) to shift+ the up and down arrow keys, so I don't have to use the number row to page through the primary lists.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

winner

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #4 on: November 17, 2008, 11:49:43 pm »

I remapped small up and down to - and =
and page up and down to [ and ]
Logged
The great game of Warlocks!

kcwong

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #5 on: November 18, 2008, 03:05:28 am »

It's not just laptops. I have it from time to time on my desktop.

For me, the reason seems to be pressing too many buttons at once. Usually this happens when I was designating an area of constructions or for mining. The combination of Shift, arrow keys, and Enter will lock the game into thinking one of the arrow button is pressed.

Once that happens, there's no way to unlock it, not even by reproducing the key-released events. I'll have to press Esc to pull up the main menu, press Enter at the right time to save the game. Then I need to restart DF.
Logged

Granite26

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #6 on: July 15, 2009, 09:40:04 am »

I am currently seeing this issue on my laptop.

It has a full number pad ( I <3 my laptop), but using it in conjunction with the shift key is causing sticky keys.

It makes the game crazy annoying, because I can't fast scroll.

smjjames

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #7 on: July 15, 2009, 11:42:15 am »

You can turn off the sticky key thing that activates after a number of presses of the shift button, if that is what's happening for you.

I get this problem when I accidentially hit Fn instead of ctrl and pressing the up or down arrow keys which adjust brightness. I think I somehow got it out of the arrow key lock once without having to restart the game, but no idea how I did it. It's solveable by saving, quitting, then restarting anyhow.
Logged

Granite26

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #8 on: July 15, 2009, 12:27:17 pm »

Interesting point, I'll check the Sticky Keys  setting in Accessibility when I get home.

That said, I don't think it's the case, unless Vista has some magical 'turn it on without alerting you when your in an app, but don't warn you are keep it on after you restart the game' setting.

Quitting the game and restarting does indeed resolve the issue, but that doesn't help, because I still can't use the shift key to fast scroll

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Sticky arrow keys (figured out cause)
« Reply #9 on: July 15, 2009, 02:59:00 pm »

I have this same issue on an Asus laptop running Vista.  Holding down an arrow key and then pressing shift to fast-scroll usually results in the scrolling continuing even after the arrow key has been released.  Sometimes quitting out to the main menu solves the problem, sometimes I actually need to completely quit DF and restart.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

smjjames

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #10 on: July 15, 2009, 03:17:56 pm »

I use the shift key for fast scroll all the time and haven't had any problems with it. Maybe it's related to some setting? I'm using a laptop, if I didn't mention it or it wasn't obvious from my previous post.

Since the ctrl key, which I use for secondary scrolling, is right next to the function key, that's usually what causes the problem when I see it.
Logged

Granite26

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #11 on: July 15, 2009, 04:04:40 pm »

WTF!?!?!!? My computer is @#$@#$# talking to me!!!!

smjjames

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #12 on: July 15, 2009, 04:10:37 pm »

?

You may have turned on the text to speech option in accessability options by accident.
Logged

Granite26

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #13 on: July 16, 2009, 09:42:56 am »

Nah, I went into the accessibility section on Vista, and it's narrated.  Creeped me RIGHT out...

I turned off all accessibility options.  If I hold shift and then the numpad key, it scrolls like there's no shift.  If I hold the numpad key and tap shift, each tap corresponds to a 10 space jump.  If I do this slowly (only jump 2-3 times, release all keys then start again), I have no problems.  OTOH, if I press the shift continually, the key sticks.

That sounds suspiciously like the five keypress to turn on sticky thing, but doesn't seem to be.  There's no windows notification (sound or otherwise) that something is turning on, and the behaviour is limited to DF.

smjjames

  • Bay Watcher
    • View Profile
Re: Sticky arrow keys (figured out cause)
« Reply #14 on: July 16, 2009, 11:40:38 am »

What about just using the arrow keys? The usual ones, not the numpad ones.
Logged
Pages: [1] 2