Comments (9)
sent PR, assigning button X or Y as the trigger. See if this is enough for whatever its needed for...
from beetle-vb-libretro.
there should only be 1-bit needed for this to happen, but, how to test for this and which button should this be mapped to?
https://files.virtual-boy.com/download/978651/stsvb.html#game_pad_data_registers
from beetle-vb-libretro.
Fantastic, thank you @negativeExponent!
Does this work as a toggle or do you have to keep the button pressed for the indicator to appear? Toggle would be best.
Wouldn't we want to route this through a new config value like "vb_input_toggle_low_battery" or something similar, so the button can be reassigned?
@RokkumanX - The Virtual Boy is powered from either an AC adapter or a battery pak attached to the back of the controller. Alongside regular button presses, the controller sends a low battery status bit to the head unit. So if the Virtual Boy is running on batteries and these are getting low on power, that status bit will be 1. It's then up to the game to display the indicator you see in the above screenshot. Being able to toggle the status bit manually is of no value to the end user, but is quite useful for homebrew developers to implement such indicator.
from beetle-vb-libretro.
Thank you very much for the explanation!
from beetle-vb-libretro.
ok forgot about adding the key to input so it can be remapped. ill deal with later if no one else does ahead of me by then... i may need then to just assign one button for it.
UPDATE:
Done. used X button as the default
#66
from beetle-vb-libretro.
I'd stick to the Mednafen key binding and map the function to the W button by default.
If it helps with testing, I can create a quick test ROM that shows a low battery indicator when the respective flag is set. Let me know.
from beetle-vb-libretro.
Nice work, looks really good.
Now, might I ask what that battery icon does? Does it show how much battery that is left on a wireless controller or heck even the laptop battery?
from beetle-vb-libretro.
I was able to test the feature on the online emulator today and it works as expected. Thanks again!
from beetle-vb-libretro.
Sorry for reviving this old thread, but I tried remapping the input for the low battery toggle from a config file and it does not seem to work. I tried remapping the following value: input_player1_x_btn. Is this the wrong one?
from beetle-vb-libretro.
Related Issues (20)
- Regarding the CPU emulation mode in beetle-vb-libretro HOT 2
- Expose vb.3dmode and other options related to side-by-side HOT 8
- Update Core Options API HOT 1
- Update core to 1.23.0 HOT 2
- (Regression) Runs too slow on the Wii/Wii U HOT 24
- After the update to 1.23.0 no longer works on Wiiu HOT 6
- Virtual Boy games core dump on PS Vita HOT 1
- [Feature Request] Reverse side-by-side mode HOT 5
- A feature idea - 3D on 3DS? HOT 5
- Is it possible to fix speed in the PS Vita core? HOT 1
- [Wii Feature Request] Wiiflow Lite plugin HOT 1
- [3DS] Core is very laggy on New 3DS HOT 5
- Return of Wii version HOT 11
- [Feature Request] Frameskip HOT 1
- Core dump HOT 10
- [Android] Voice clips in Red Alarm play too fast/high-pitched.
- Higher Internal Resolution? (Better than upscaling)
- Black Screen
- Virtual Boy 4Colors (VB.PAL) Custom Palette HOT 1
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 beetle-vb-libretro.