Giter VIP home page Giter VIP logo

Comments (9)

negativeExponent avatar negativeExponent commented on July 29, 2024 6

sent PR, assigning button X or Y as the trigger. See if this is enough for whatever its needed for...

seems to work in Warioland:
image

from beetle-vb-libretro.

negativeExponent avatar negativeExponent commented on July 29, 2024 1

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.

KR155E avatar KR155E commented on July 29, 2024 1

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.

RokkumanX avatar RokkumanX commented on July 29, 2024 1

Thank you very much for the explanation!

from beetle-vb-libretro.

negativeExponent avatar negativeExponent commented on July 29, 2024 1

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.

KR155E avatar KR155E commented on July 29, 2024

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.

RokkumanX avatar RokkumanX commented on July 29, 2024

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.

KR155E avatar KR155E commented on July 29, 2024

I was able to test the feature on the online emulator today and it works as expected. Thanks again!

from beetle-vb-libretro.

KR155E avatar KR155E commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.