Author Topic: Unusual SDL keypress events  (Read 1030 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Unusual SDL keypress events
« on: 17 February 2012, 21:53:25 »
Taking a look at my and other peoples' verbose logs I spot a series of SDL keydown (or keypress?) events which I cannot explain. Here's some examples of series of keys which, to my understanding, are reported to have been pressed on my system (but I surely did not!):
  • ^@,ctrl left,h,return,backspace,nm,F8,k,left,right,up,down,f,space,p,*,c,+,-,escape,0,1,2,3,4,5,6,7,8,9,g,i,b,unknown key,r,t,a,s,?,l,F5,e,/
  • ^@,F11,return,?,F5,e,/
  • ^@,h,return,tab,backspace,m,k,F11,return,?,F5,e,/
It would seem strange to me to find such key sequences in the verbose log if these keys have not actually been pressed. Is there another explanation to it?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Unusual SDL keypress events
« Reply #1 on: 19 February 2012, 15:35:28 »
Can you confirm which type of keyboard all these users have? Is it the standard english QWERTY or another specific keyboard? I have a feeling some keyboards may auto send the CTRL character to SDL.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Unusual SDL keypress events
« Reply #2 on: 19 February 2012, 16:51:22 »
I have a Logitech Cordless EX110 keyboard, using the "generic 101 keys" keyboard driver with QWERTZ (german) layout. The other verbose.log I looked at and spotted the strange keypresses in was one of someone (unfortunately I do not exactly remember whom, possibly Uncle) from eastern europe (where, I think, non-english keyboard layouts are common) and supposedly uses a local keyboard layout there (I have no details, maybe it would be good to examine and log this during runtime, too, if possible).

Edit: Remove reference to uuu, it wasn't him whose logs I was looking at.
« Last Edit: 20 February 2012, 09:53:25 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Unusual SDL keypress events
« Reply #3 on: 4 March 2012, 14:19:03 »
So I looked at the log totalnoob posted here.
If you fgrep 'pressed key'  megaglest_3.6.0.3_verbose.log you'll still end up with lots of output, much more keys pressed, and different ones, than a human player would probably do. There are repeating patterns including sequences of 1..9 in there. His game is configured to use polish language files and I assume his keyboard layout is, too.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything