I wish I had noticed this sooner when the update was posted... For whatever reason, certain applications with SDL2 2.0.5 are receving duplicate keyboard events. Mouse seems unaffected, but the menus of some games are very hard to navigate.
If the Esc key opens a menu, instead what happens is it opens and closes before you can do anything. If you happen to be in a menu, arrow keys for navigation move the selector up or down two spaces at a time. Trying to open a console, would make it open and close immediately as well. Gameplay-type keys would work normally in my testing. games/quakespasm shows this problem. I haven't found others just yet that are in ports, but it was while checking the SDL2 branch of chocolate-doom currently in development that led me to this discovery. Initially thought it was just a local problem with that project until i duplicated it also with doomretro (not in ports, http://github.com/bradharding/doomretro) and quakespasm. My workstation at work still has a snapshot from Nov 8th, running SDL2 2.0.4. As a result I can't reproduce the issue here. My workstation at home ran a snapshot from Nov 17th when I found the problem. I updated it to Dec 1 snapshot and verified the problem still exists. I found this post in the SDL2 changelog: http://hg.libsdl.org/SDL/rev/aea47b61c640 ...and wondered if it was somehow related. I manually reverted this patch and gave it a go, but the problem persists. Has anyone else noticed duplicated key events in SDL2 programs? Any other examples? I am not sure where to look, but don't want to keep this to myself for too long... dmesg below of the most recent snapshot I've tried this with, cheers! -ryan OpenBSD 6.0-current (GENERIC.MP) #0: Thu Dec 1 12:16:22 MST 2016 bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 16357261312 (15599MB) avail mem = 15856971776 (15122MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries) bios0: vendor American Megatrends Inc. version "1206" date 04/16/2009 bios0: ASUSTeK Computer INC. P5K3 Deluxe acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4) EUSB(S4) USBE(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) GBEC(S4) USB0(S4) USB1(S4) USB2(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz, 2504.99 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF cpu0: 3MB 64b/line 8-way L2 cache mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 333MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz, 2504.63 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF cpu1: 3MB 64b/line 8-way L2 cache cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz, 2504.63 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF cpu2: 3MB 64b/line 8-way L2 cache cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz, 2504.63 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF cpu3: 3MB 64b/line 8-way L2 cache ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P2) acpiprt2 at acpi0: bus 4 (P0P1) acpiprt3 at acpi0: bus 3 (P0P4) acpiprt4 at acpi0: bus -1 (P0P6) acpiprt5 at acpi0: bus -1 (P0P7) acpiprt6 at acpi0: bus -1 (P0P8) acpiprt7 at acpi0: bus 2 (P0P9) acpicpu0 at acpi0: C1(@1 halt!), PSS acpicpu1 at acpi0: C1(@1 halt!), PSS acpicpu2 at acpi0: C1(@1 halt!), PSS acpicpu3 at acpi0: C1(@1 halt!), PSS aibs0 at acpi0 RTMP RVLT RFAN GGRP GITM SITM "PNP0501" at acpi0 not configured "PNP0303" at acpi0 not configured "PNP0C32" at acpi0 not configured acpibtn0 at acpi0: PWRB cpu0: Enhanced SpeedStep 2504 MHz: speeds: 2497, 1998 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: msi pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 4870" rev 0x00 drm0 at radeondrm0 radeondrm0: msi azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 48xx HD Audio" rev 0x00: msi azalia0: no supported codecs uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16 uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21 uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 18 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi azalia1: codecs: Analog Devices AD1988B audio0 at azalia1 ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi pci2 at ppb1 bus 3 ppb2 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x02: msi pci3 at ppb2 bus 2 mskc0 at pci3 dev 0 function 0 "Marvell Yukon 88E8056" rev 0x12, Yukon-2 EC Ultra rev. A1 (0x2): apic 4 int 17 msk0 at mskc0 port A: address 00:1b:fc:2d:1c:4c eephy0 at msk0 phy 0: 88E1149 Gigabit PHY, rev. 1 uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 23 uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 19 uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 23 ehci1: timed out waiting for BIOS usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 pci4 at ppb3 bus 4 re0 at pci4 dev 4 function 0 "Realtek 8169SC" rev 0x10: RTL8169/8110SCd (0x1800), apic 4 int 16, address 00:1b:fc:2d:10:40 rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2 pcib0 at pci0 dev 31 function 0 "Intel 82801IR LPC" rev 0x02 ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.2 ahci0: port 0: 3.0Gb/s ahci0: port 2: 3.0Gb/s ahci0: port 5: 3.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD2502ABYS-1, 02.0> SCSI3 0/direct fixed naa.50014ee1aea567f5 sd0: 238418MB, 512 bytes/sector, 488281250 sectors sd1 at scsibus1 targ 2 lun 0: <ATA, WDC WD2500AAJS-7, 02.0> SCSI3 0/direct fixed naa.50014ee00292fe77 sd1: 238418MB, 512 bytes/sector, 488281250 sectors sd2 at scsibus1 targ 5 lun 0: <ATA, WDC WD2003FYYS-1, 01.0> SCSI3 0/direct fixed naa.50014ee25c763edd sd2: 1907728MB, 512 bytes/sector, 3907027055 sectors ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 int 18 iic0 at ichiic0 sdtemp0 at iic0 addr 0x19: stts2002 sdtemp1 at iic0 addr 0x1b: stts2002 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor spdmem2 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor usb2 at uhci0: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb7 at uhci5: USB revision 1.0 uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23 lm1 at wbsio0 port 0x290/8: W83627DHG vmm0 at mainbus0: VMX uhub8 at uhub1 port 3 configuration 1 interface 0 "NEC hub" rev 2.00/1.00 addr 2 uvideo0 at uhub8 port 3 configuration 1 interface 0 "Microsoft Microsoft\M-. LifeCam Cinema(TM)" rev 2.00/1.00 addr 3 video0 at uvideo0 uaudio0 at uhub8 port 3 configuration 1 interface 2 "Microsoft Microsoft\M-. LifeCam Cinema(TM)" rev 2.00/1.00 addr 3 uaudio0: audio rev 1.00, 2 mixer controls audio1 at uaudio0 uhidev0 at uhub8 port 4 configuration 1 interface 0 "Razer Razer DeathAdder 2013" rev 2.00/2.00 addr 4 uhidev0: iclass 3/1 ums0 at uhidev0: 5 buttons, Z dir wsmouse0 at ums0 mux 0 uhidev1 at uhub8 port 4 configuration 1 interface 1 "Razer Razer DeathAdder 2013" rev 2.00/2.00 addr 4 uhidev1: iclass 3/0, 5 report ids ukbd0 at uhidev1 reportid 1: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 uhid0 at uhidev1 reportid 2: input=15, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=15, output=0, feature=0 uhid2 at uhidev1 reportid 4: input=15, output=0, feature=0 uhid3 at uhidev1 reportid 5: input=15, output=0, feature=0 uhidev2 at uhub8 port 4 configuration 1 interface 2 "Razer Razer DeathAdder 2013" rev 2.00/2.00 addr 4 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 variable keys, 6 key codes wskbd2 at ukbd1 mux 1 uhidev3 at uhub6 port 2 configuration 1 interface 0 "Razer Razer BlackWidow Ultimate" rev 2.00/2.00 addr 2 uhidev3: iclass 3/1 ukbd2 at uhidev3: 8 variable keys, 6 key codes wskbd3 at ukbd2 mux 1 uhidev4 at uhub6 port 2 configuration 1 interface 1 "Razer Razer BlackWidow Ultimate" rev 2.00/2.00 addr 2 uhidev4: iclass 3/0, 5 report ids ukbd3 at uhidev4 reportid 1: 8 variable keys, 6 key codes wskbd4 at ukbd3 mux 1 uhid4 at uhidev4 reportid 2: input=15, output=0, feature=0 uhid5 at uhidev4 reportid 3: input=15, output=0, feature=0 uhid6 at uhidev4 reportid 4: input=15, output=0, feature=0 uhid7 at uhidev4 reportid 5: input=15, output=0, feature=0 uhidev5 at uhub6 port 2 configuration 1 interface 2 "Razer Razer BlackWidow Ultimate" rev 2.00/2.00 addr 2 uhidev5: iclass 3/0 ums1 at uhidev5: 3 buttons, Z dir wsmouse1 at ums1 mux 0 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd1a (a13878bb05ee007f.a) swap on sd1b dump on sd1b radeondrm0: 1680x1050 wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wskbd2: connecting to wsdisplay0 wskbd3: connecting to wsdisplay0 wskbd4: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation)