Comments (4)
You said that the fix works, so I'm closing this.
from sdlpop.
Maybe SDLPoP should ignore the tab key for some time after its window gets focus?
from sdlpop.
I barely know the code, so this is just a shot in the dark, but can't it check whether event.type is SDL_KEYDOWN or something similar?
from sdlpop.
can't it check whether event.type is SDL_KEYDOWN or something similar?
The code is already doing that: Keyboard commands are read from the last_key_scancode
variable, which is set only in SDL_KEYDOWN
events.
See here: https://github.com/NagyD/SDLPoP/blob/master/src/seg009.c#L2867
(You can add a debug printout there to see what happens.)
The operating system (or SDL) automatically sends repeated keydown events if a key is held down.
For example, if I Alt+Tab into a text editor, then holding Tab down will enter tabs until I release it.
A difference between operating systems is that on Windows, there is a noticeable delay before the first repeat; but on Linux, there is no such delay.
from sdlpop.
Related Issues (20)
- Level 4 guard doesn't open the gate HOT 5
- Input inprecision or lag HOT 3
- Compilation fails on Mac M1 HOT 9
- Missing variables in savestate HOT 1
- Project uses spaces and tabs for indentation HOT 2
- Can't "careful step" with joysticks not compatible with SDL_GameController HOT 2
- Segfault when trying to load non-existent mod HOT 1
- A possible sequence table bug HOT 1
- Skeletons that are not in the original level 3 room start falling from the wrong room. HOT 4
- Feature Request: Pop-up Keyboard HOT 2
- [enhancement] redefine_keyboard2 branch HOT 2
- compiling error HOT 5
- Allow cli arg or env var to set save/load directory HOT 1
- Mobile Port (ask) HOT 2
- windows reports software as not safe HOT 2
- Out of bounds x-coordinate in x_bump HOT 2
- Compilation fails under Windows 10 HOT 1
- Build failure on Fedora Linux HOT 2
- Copy protection Letters are not visible HOT 1
- when building and executing, i get error 0xc000007b. using release, not debug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdlpop.