Comments (2)
I’m taking a look at this! Reading keys from the command line sounds tricky; don’t you need to launch an SDL window to read keypresses like that? Either way, I think a simple interactive editor (display the current key bindings, click one to change it, save on exit) written in SDL might be better, so that’s what I’m considering to write.
from citra.
Scratch that: after some discussion on IRC, I’m realizing that rendering text in SDL is surprisingly difficult, and will require some new external library if we want to do it right. (SDL_ttf
has its shortcomings, so linkmauve recommended Pango, but that seems to be a rather heavyweight solution.)
For now, the UI I’m implementing will be more or less as described in this issue: you pass a key name as a command line argument, a dummy SDL window pops open, you enter a single keypress into it, and the config file gets rewritten. This is sort of clunky, but should be easily improvable once the text issue gets resolved.
from citra.
Related Issues (20)
- G-Sync causes extreme flicker on all games
- Can't configure L and R in Mac OS HOT 2
- Camera image not detected on Linux HOT 2
- Volume slider not synchronized with per game value
- Resident Evil Mercenaries 3D Crash When red barrels explode HOT 1
- [Android] Phoenix Wright: Ace Attorney - Dual Destinies – May occasionally experience crashes during the Capcom Animating Logo Intro
- Key repetitions on Windows count as multiple inputs
- Linux build fails with "undeclared identifier 'Frontend'"
- [Bug] Sakura Samurai: Art of the Sword - Black Area Background HOT 4
- [Bug] Face Raiders (New 3DS Version) Crash HOT 3
- Project MIRAI DX - crashes with the song "Nice to Meet You, Mr Earthling" HOT 3
- The emulator simply restarts my phone. HOT 1
- Gyro in rotated screen mode is funky
- Linking a game's compatibility rating to different regional IDs (NTSC to PAL and vice versa)
- Check that the driver supports "shaderSampledImageArrayDynamicIndexing", before using it (Raspberry Pi 4/5 (v3dv)) HOT 4
- [OpenGL] Pokemon XY: Outlines don't render in the overworld HOT 5
- sanitize_mul is inefficient HOT 1
- sanitize_mul is inefficient HOT 2
- [Android/Mali] Lego The Hobbit: Vertex explosions HOT 3
- Ridge Racer 3D crashes out nearly straight away HOT 2
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 citra.