#KeyState
Got a plan. Going to use the keystate array to handle the key presses. It will mean scanning all 40 keys but so be it.
August 10, 2026 at 8:15 AM
SDL3 does not fix this. Nor does checking the keystate in any of the available ways in SDL (SDL_GetKeyboardState, SDL_GetModState, etc). Next step is to speak to the organ grinder, and see what win32 reports.
August 11, 2026 at 7:42 AM
Late to the thread but immediately was going to say "keystate".

SDL events can be unreliable cross-platform and threading and other issues can interfere.

Whenever I'm interested in using the keyboard for anything beyond text input for SDL, I go to keystate checked in the main loop.
August 10, 2026 at 11:51 AM
Ah no, I remember now - this still falls foul of SDL; it appears to maintain its internal keystate by using the underlying OS KEYUP/KEYDOWN events. Sigh.
September 3, 2026 at 8:33 AM
YES!!! the keyboard works!

why it wasn't working is a bit funny: the X1 expects the key state header to be inverted, and to account for that, my code sends the opposite pulses accordingly... except I also invert the keystate buffer *before* sending the pulses, un-inverting it
September 1, 2026 at 2:12 PM
"KeyState is a project that may never get off the ground. Babb’s original plans have been modified, adding delays and further costs. Perhaps it’s time...find a business for Clinton County that will actually improve the economy and enhance our quality of life."

www.lockhaven.com/opinion/lett...
KeyState faces uncertainty
Karen Elias Lock Haven The decision by the new administration to freeze billions of dollars in clean energy funding has cast uncertainty over the nearly $2 billion KeyState complex proposed for Clinto...
www.lockhaven.com
March 24, 2025 at 3:52 PM
WPSU - Anne Danahy: One Possible Solution To High Fertilizer Prices Caused By President’s War With Iran - Long-Discussed Keystate Natural Gas Plant With Possible Completion In 2031 radio.wpsu.org/2026-08-13/a...
As PA farmers contend with high fertilizer prices, one possible solution emerges
A possible long-term solution to the sharp increase in fertilizer prices that American farmers, including in Pennsylvania, faced this year was the focus of a session this week at Penn State’s Ag Progr...
radio.wpsu.org
August 14, 2026 at 12:49 PM
At Penn State’s recent Ag Progress Day, a proposed project called KeyState Energy would produce urea and urea ammonium nitrate fertilizer in Clearfield County that could make the product more affordable and accessible to area farmers.
As Pa. farmers contend with high fertilizer prices, one possible solution emerges
A possible long-term solution to the sharp increase in fertilizer prices that American farmers, including in Pennsylvania, faced this year was the focus of a session this week at Penn State's Ag Progr...
www.wesanews.org
August 14, 2026 at 10:51 AM
Guest Essay: Weighing The Pros And Cons Of KeyState Energy’s Natural Gas-Based Fertilizer Plant In Karthaus Twp., Clearfield County - By Ben Hoffman, Farmer, Karthaus Township [PaEN] tinyurl.com/3nycbwbe
July 8, 2026 at 10:57 AM
KeyState Energy, CNX and Pittsburgh International Airport are collaborating on a transformational #hydrogen and sustainable aviation fuel hub at PIT property-- tinyurl.com/3up6fpd5

#CleanEnergy #H2 #Decarbonise #ZeroEmissions
KeyState, CNX Advancing Transformational Hydrogen and Sustainable Aviation Fuel Hub at Pittsburgh International Airport
Proposed facility will help catalyze hydrogen and sustainable aviation fuel industries at scale, propel the aviation sector's decarbonization goals, lower
tinyurl.com
May 15, 2024 at 1:23 PM
KeyState Update:
“KeyState CEO Perry Babb told Capital & Main the company had pivoted from its energy production project with Nicola to a new ammonia fertilizer project that has a committed customer and will still rely on hydrogen and receive funds from ARCH2."

capitalandmain.com/the-trump-ad...
The Trump Administration Climate Plan: Red States Get Hydrogen, Blue States Don’t
In Pennsylvania, a hydrogen hub in upheaval as natural gas producer pauses involvement while four others bail on the project.
capitalandmain.com
April 29, 2025 at 8:27 PM
keyState = keyDown ? keyState <= 0 ? 1 : keyState + 1 : keyState > 0 ? -1 : keyState - 1
やっぱこれよ
November 22, 2024 at 1:31 AM