Amulet-Team / Amulet-Editor

Amulet-Map-Editor 1.0
1 stars 0 forks source link

function request - On-screen control for touch devices + need native compiled build for Windows ARM64 #43

Open Max-RM opened 1 year ago

Max-RM commented 1 year ago

function request - On-screen control for touch devices.

(windows Arm on touchscreen or Linux devices). a similar thing is implemented in PojavLauncher where the user can configure the control himself and add/configure buttons. how to activate:

add a function in the settings of the amulet that will trigger on-screen control with WASD, shift, space, etc.

customizable:

if one py file is responsible for on-screen control, then the user can change it by adding their own buttons or configuring them. and configuration selection - if there are several on-screen control configurations in the folder for management, then the user can select needed one from the list.

area selector issue:

since devices with a touch screen and without a keyboard do not have a pc mouse cursor, they need another method to select the area/move the imported building. there are several ways to solve the problem.

1) if the user double-clicked on the block, then the area selector is activated, then without releasing the finger from the screen, stretch the area to the desired point and release the finger, then the area is highlighted. since the second hand is free, the user will be able to move using the on-screen buttons WASD, shift, space and even rotate the camera head. with the same doubleclick, the user will be able to move the edges of the selected parralelipiped, as well as move the building that was imported into the world.

2) the button X name does not matter. the meaning of the button is that when the user clicks on the first block, then presses the X button and pulls his finger to another point, then the area will stand out. you can also make the X button as a switch, since it is inconvenient to hold it constantly and will prevent you from using WASD, shift, space and rotating the camera head. and also this button will work on moving the imported building or moving the faces of the selected parralelipiped.

RMB, LMB issue:

since clicking on the touch screen basically means the right mouse button, then you need to make it possible to use it as the left mouse button. To do this, you can use: to use the left button, use a double click or hold your finger for 2 seconds. another option is to make a switch that will change the mouse button.

this will all work on touch screens, but it will not work on Android via Linux Deploy because Linux deploy works with VNC, which means there is already emulation of the keyboard and mouse cursor (not very convenient)

there is also a problem that there is no compiled build for Windows ARM. Idk maybe if installed from source code, it will compile itself on ARM in Windows ARM.

x86 and x64 can also work in Win ARM through an instruction translator, but this is slower than a native program.