Code Monkey home page Code Monkey logo

Comments (4)

Aceship avatar Aceship commented on May 26, 2024 1

Actually its more to VHVR bug, hence i added an option which fix this issue (brandonmousseau/vhvr-mod@f8d9680) , while its not released yet, it should works with XPortal and other stuff that have compatibility issue with automatically show keyboard

(note that it needs to be false to make the XPortal usable, but it still defaults on true)
image

from xportal.

SpikeHimself avatar SpikeHimself commented on May 26, 2024

XPortal reacts to an Enter keypress to "submit" the portal configuration window. So the normal normal behaviour is that you type in the portal name and then press Enter, which submits your changes and closes the window. This is a key behaviour to intuitive UI interaction IMO, and should not be changed.

We can tackle this if it were possible for XPortal to detect that an on-screen keyboard is being used, but I presume the keyboard exists outside of the Valheim instance. The game is simply being sent keypresses as though they came from a hardware keyboard.

An alternative approach could be to introduce a config option which disables "submit on enter", so that the user can choose how the UI behaves.

XPortal could also use BepInEx functionality (Chainloader.PluginInfos) to detect if VHVR is loaded and change the behaviour based on that. This might introduce new challenges though, as perhaps not all VR users use or rely on an on-screen keyboard. Additionally, it wouldn't offer a fix for other mods which also use an on-screen keyboard.

from xportal.

SpikeHimself avatar SpikeHimself commented on May 26, 2024

That is awesome, thanks for your input on this @Aceship !

from xportal.

SpikeHimself avatar SpikeHimself commented on May 26, 2024

Fixed as per v0.9.7 of VHVR: https://github.com/brandonmousseau/vhvr-mod/releases/tag/v0.9.7

from xportal.

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.