Wolfyxon / 3ds-web-stuff

A collection of browser games and other stuff for the Nintendo 3DS
https://wolfyxon.github.io/3ds-web-stuff/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

[ENHANCEMENT] automatically opening app/game in new tab #6

Open Trickiy opened 7 months ago

Trickiy commented 7 months ago

I realized that when apps/games are opened in a new tab the b button won't exit the page. Which would prevent users from accidentally exiting apps/games.

Wolfyxon commented 7 months ago

I'm not sure. I should probably first make a settings menu since this might get a bit annoying sometimes so it can be turned off.

Trickiy commented 7 months ago

After thinking and realizing that the L/R triggers are also disabled it might be possible to use some of the old input detection system code.(specifically the parts that reconize the L/R triggers) which would allow for more things to be possible. like being able to use the triggers for jetfighter allowing lobbying of bombs and launching homing missles, and use them to control the camera instead of the D-pad for 3d games giving more freedom of movement.

Wolfyxon commented 7 months ago

I utilize all the usable buttons. Buttons such as L can only be detected on the New 3DS using the gamepad API, but you can't stop the browser from doing their default action - in this case showing the history (or bookmarks, don't remember exactly).

Trickiy commented 7 months ago

So it's not possible to make L/R do the default action and a second action on top of it.

Wolfyxon commented 7 months ago

It is possible but only on the New 3DS and I think it would be annoying to open browser menus whenever you have to do something in the game.

Trickiy commented 7 months ago

But having the game open in a new tab and press L/R doesn't open the browser menus. So are you saying you want the games to be the same on old and new 3ds's? If so yes it would be annoying. So I guess I am asking for new 3ds exclusive games then.

Wolfyxon commented 7 months ago

Oh sorry I mistook L and R buttons with the smaller ones, that would work but yeah it would be a N3DS exclusive sadly.

Trickiy commented 7 months ago

So can new 3ds mode be a toggle in settings so that the 3d gun game and more could be more playable on new 3ds while keeping it playable on old, and I quickly need to say off topic I know but it's lent right now and my family is giving up tech so I will be quiet till easter sadly.

Wolfyxon commented 7 months ago

This would require a partial rollback to the old input detection system since the Webkit gamepad API does not have events and the inputs must be checked in a loop which lowers the performance, but I'll think about it if there's a better way.

lent right now and my family is giving up tech so I will be quiet till easter sadly.

Alright see you soon and thanks for you help!

magiczocker10 commented 4 months ago

The idea isn't bad, but don't know how we should do it for old 3DS. It doesn't have tabs.

Trickiy commented 4 months ago

Just have the feature be new 3ds only or somehow make tabs functional on I want to say client side but it sounds wrong eh you understand.

Trickiy commented 4 months ago

The idea isn't bad, but don't know how we should do it for old 3DS. It doesn't have tabs.

After thinking for a while clearing previously viewed links from recent history stored in the back arrow after opening a game or app would probably work. How would it be done? dk

Wolfyxon commented 4 months ago

JavaScript executed on pages can't do such things. It would require hijacking the browser.

Trickiy commented 4 months ago

I personally would've tried to highjacking the browser already just to remove the limitation that are placed on the browser. Also maybe using a different language along side JavaScript would have usefull functionality that possibly could do the clearing without hijacking.

Wolfyxon commented 4 months ago

JavaScript is the only programming language that can be executed on the 3DS browser (except HTML and CSS but they're not really programming languages), JavaScript is especially made for the web. Also no matter the language, the browser would never allow any page to elevate its permissions to the point where it changes the browser itself.

Trickiy commented 3 months ago

I'm curious to know what happens when someone opens the website via the qr code On old 3ds? Because on new 3ds it automatically opens in a new tab. Does the old 3ds do something similar?