Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better toolbar and keyboard #42

Open
soundsnow opened this issue Jun 18, 2023 · 71 comments
Open

better toolbar and keyboard #42

soundsnow opened this issue Jun 18, 2023 · 71 comments

Comments

@soundsnow
Copy link

soundsnow commented Jun 18, 2023

background: outline or fill
opacity: 0-255
color: RGB0-255

screenshot: outline, 255, white
shift and capslock is one key
after you input another key grey keys will be transparent (default), but purple keys won't be changed unless tap them again manually
landscape
portrait
press hold

I remember some hotkeys for web browsers
Ctrl+R, F5 Refresh page
Ctrl+W, Alt+ F4 close page
I added them to top toolbar
Rufffle bar (toolbar) should be hidden/shown in landscape mode manually by pressing back triangle

@soundsnow
Copy link
Author

soundsnow commented Jun 18, 2023

can you fix this flash game in portrait and landscape
https://archive.org/download/EYEZMAZE/EYEZMAZE/Black_Box.swf

another thing it can't close current swf and open another swf unless force stop this app

@soundsnow
Copy link
Author

soundsnow commented Jun 18, 2023

sorry, my English isn't good
add these to toolbar (left side)
mute/unmute, play/pause

this should be helpful if you want to play different flash games
custom profiles and per game profile

keyboard should be hidden by default because a lot of flash games only support mouse

"SWF URL" should be removed
I don't want to backspace "SWF URL" manually every time then paste URL

mouse mode: mouse (move a finger on screen), touchscreen (exact position)

mouse sensitivity
if real mouse mode is enabled

touchscreen is enabled by default because of Android phone screen size is less than PC monitor

I tried scare maze, that's too easy. Tap the goal, you passed that level

keep screen on if you're watching a flash animation
and you can hide toolbar

add a shortcut to launcher for swf you're playing

@soundsnow
Copy link
Author

profiles
create new profile

rename profile
set a profile as default
delete profile
edit profile

screen options
custom resolution on/off
add/remove resolution
input width and height
scale %
screen orientation: default, auto, portrait, landscape
screen gravity: default, left, top, center, right, bottom
scale type: as is, fit to window, fit to window (ignore aspect ratio)
graphics mode: software, hardware (opengl es), hardware (vulkan)
force fullscreen on/off

input devices
touch input (mouse) on/off
add/remove custom layout

virtual keyboard on/off
button shape: oval, rectangle, rounded rectangle
opacity
label color
button color (transparent default)
outline color

@soundsnow
Copy link
Author

keylayout edit
keylayout resize

for custom onscreen gamepad and flash lite phones

@soundsnow
Copy link
Author

image1

@soundsnow
Copy link
Author

soundsnow commented Jun 18, 2023

there're some java phones supports Flash Lite
that's why screen orientation and screen gravity needed
for some touchscreen phones, you can play flash games in portrait without its keyboard
some phones have extra buttons: ABCD
Nokia or SonyEricsson phones you can play a game in portrait or landscape
some phones have a 8-way D-Pad instead of 4 arrow keys
I didn't find backspace and enter, but nokia phones have these keys often used
virtual keyboard for landscape and portrait should be different. like my screenshots
keyboard shouldn't be filled with color by default, I can't see background in landscape, It should be transparent. only labels and outline should be filled with colors

@soundsnow
Copy link
Author

soundsnow commented Jun 19, 2023

These 4 smartphones may support Flash Lite
They're iPhone's opponents
you can find their or more different old phone IMAGES/3DModels on gsmarena.com
konkurencja-1000x498

@soundsnow
Copy link
Author

soundsnow commented Jun 20, 2023

toolbar, keyboard, mouse cursor, virtual gamepad can be hidden
mouse touch or mouse move can be disabled

keyboard, mouse cursor, virtual gamepad color can be changed. transparent default
mouse cursor, virtual gamepad size can be changed

why mouse cursor is needed?
mouse cursor on/off
mouse mode
touch: no need commonly unless my hand is too big, and I don't have Samsung S-Pen or Motorola Stylus. They're more accurate than my fingers
move: it's necessary because you need to know cursor position. Move on screen like a mouse mat. Cursor position may be not your finger position.

what's mouse mode I'm thinking?
move: route is followed by moving direction. you can't make cursor from (1,1) to (4,4) instantly
(1,1) (2,2) (3,3) (4,4)
touch: route is followed by your finger. you can make cursor from (1,1) to (4,4) instantly or move your finger from one position to another position
(1,1) (4,4) or (1,1) (2,2) (3,3) (4,4)

movement keys can be placed at left side or right side of screen for different handed people

2 way paddle (up/down)
2 way paddle (left/right)
4 way dpad
8 way dpad
16 way analog stick
3 way paddle (2 way + center button)
5 way phone controller (dpad+ center button)
9 way phone controller (dpad+ center button)
17 way analog stick (16 way + center button)

pick keys what you need from full size keyboard. 104 keys?
pick all keys you need then you can close that window, don't like some apps let user choose only one key then reopen that window to choose next key

Capslock, Numlock, Scrolllock, Shift switchable keys are hidden by default. you can show those keys then pick from them

LCtrl, RCtrl, LAlt, RAlt, LShift, RShift can be picked from key grid

@soundsnow
Copy link
Author

soundsnow commented Jun 20, 2023

Allow add 1 to 4 Paddles/D-Pads/Analog sticks on screen because some flash games support 4 players to play (wireless or one keyboard)
left 2 fingers control p1p2, right 2 fingers control p3p4
play fanmade bomberman

rotate animation window
0, CW 90°, 180°, CCW 90°

@soundsnow
Copy link
Author

You can switch freely between paddle/dpad/anglog stick, and four players can move in different ways

for example
p1: dpad, p2: paddle, p3: analog stick, p4: paddle

center buttons like xbox/ps controller l3 and r3
l3 is left stick button, r3 is right stick button
like old java phones, 4 or 8 way + center button

@soundsnow
Copy link
Author

soundsnow commented Jul 1, 2023

canvas color
I'm not sure, but some flash games show me pure white background color. It's harmful to my eyes
pure black is better

i can't back to animation window page
but it's still playing
Back to Ruffle home page then you can't back to content page

blackscreen bug: open an animation swf
it's playing
you tap circle (navigation bar)
back to your system home launcher
then back to ruffle
it's blackscreen. yes it's still playing

@soundsnow
Copy link
Author

screen position: top left center right bottom
Screenshot_20230701-161310_Trebuchet
Screenshot_20230701-161253_Trebuchet
Screenshot_20230701-161232_Trebuchet
Screenshot_20230701-161142_Trebuchet
Screenshot_20230701-161112_Trebuchet
Screenshot_20230701-161032_Trebuchet

@soundsnow
Copy link
Author

soundsnow commented Jul 1, 2023

@torokati44
Copy link
Member

how to open a flash game with many levels
1 game but more than 2 files

That doesn't work yet, sorry. But it is planned of course. No time estimate though...

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

select, cut/copy/paste and clipboard (IME and built-in)
cutcopy1
Early year of iPhone OS, Apple showed ushow to copy, cut and paste
Today, Windows 11 has its built-in clipboard tool
I think they're useful
I can copy the Answer of that Question from a website
Firefox copy or cut, Ruffle paste or clipboard input
or
Ruffle copy/cut then paste or clipboard input
Sometimes you need to type something too long
is possible copy/cut from Flash content?
It's used to do something like cheat code, unlock premium levels or easter egg

https://en.m.wikipedia.org/wiki/Macro_key
Macro keys are also needed
For some fighting games (king of fighters, street fighter fanmade), It allows you to defeat your opponent in a short time

Turbo keys
hold to enable that turbo key until you release
press to enable that turbo key until you press again

you can also rename turbo, macro or one key
i added two keys one run, another is jump
they (one key or all keys) can be hidden, shown, deleted, added

@soundsnow
Copy link
Author

add turbo, macro, clipboard to toolbar
You can add or enter multiple virtual buttons or clipboard sentences at a time. Instead of adding a button and it disappears, you have to click Add and select the button again. Because small screen devices cannot display all functions, you have to click more to open them

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

don't make it refresh recent list or file list
this is better for hardware life

i used some apps, after i exit from a opened file, it refresh/rescan all files 29GB.
MAME4droid costs me too much time to REscan files
so don't scan files automatically
scan files automatically when there's no files are shown in list
after you scanned files, next time you don't need to rescan them again unless you added or deleted files then scan files manually

For example
If someone copied 65GB files from flashpoint to his Android phone. He don't want to Ruffle Android REscan files too many times automatically

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

Can you implement some useful functionality in Adobe Animate?

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

turbo speed, interval, delay

zoom+, zoom- button
pinch gesture
0-100% slider+custom inputted value

minium size screenshot
original screenshot
custom resolution screenshot
folder: Pictures/Ruffle or Android/data/ruffle app/screenshot
filename: swf filename_time.jpg/.png(or other file format)
Dude.swf
Dude_20230512-162755.png
don't create screenshot folder like some apps, even no pictures but create an empty folder

custom toolbar layout
like this show keyboard,more(add button) to add button, more (show keyboard)
you can place some toolbar buttons to the best position

key layouts
delete
add
set default
rename (default name 0,1,2,3), you can choose from them

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

Different toolbar and others layout for tablets and foldables
Phone stylus and Tablet keyboard (famous manufacturer: Samsung?)

@soundsnow
Copy link
Author

For different machines, they have different aspect ratio of screen

This is a Vertical/Horizontal (Portrait/Landscape) game
It's a phone game made by gameloft Prince of Persia
It allows players to change its in-game screen options

Another game called Ikaruga
It's an arcade Vertical shooter like Space Invaders
It has Sega Dreamcast and Nintendo Switch versions
To play Ikaruga home version like Arcade
Dreamcast: Buy a rotating monitor, change display settings from horizontal to vertical mode. Rotate your screen
Switch: change settings and play that game with Joy-Con or other Wireless controller

Device Orientation: Auto, Portrait, Landscape
Screen Rotation: 0, 90°CW, 180°, 90°CCW
Screen Position: Left, Top, Center, Bottom Right
Notch & Status Bar Screen: On, Off
Navigation Bar (Navibar) Screen: On, Off
Toolbar: On, Off
Virtual Keyboard: Built-in, IME, Off
Screen Mouse: Touch, Real-like, Off
Mouse Cursor: On, Off

Buttons are not allowed to extend beyond the edge of the screen. A button is not allowed to be covered by another button, it can only be close to the border of another button at most.

Another useful feature comes to mind. For more than two buttons, I don't want to remove them one by one to another position after rotating the screen. Before moving them, I can specify which added adjacent buttons to move, for example I want to move all numbers or all arrows. To move multiple numbers, click "Select" 1234567890 or UpDownLeftRight, then click "Move", and finally click "Finish"
There are two ways I recommend providing multiple selection buttons, list checkboxes and clickable multiple buttons. Because some people make the buttons very small, which makes it difficult to precisely select the button that needs to be moved
Individual buttons can also be moved individually

Screenshot_20230702-183656_Trebuchet
Screenshot_20230702-183537_Trebuchet
Screenshot_20230702-183416_Trebuchet

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

These keys are very commonly used, adding multiple keys to the screen at once
You can change the size of these overall after adding

slider+input or corner extrude individually
26 letters
10 numbers
17 Numpad keys
4 Arrows: Arrows, 4way Dpad, 8way Dpad

I don't know if other mobile phone OSs (Blackberry, Palm, Windows) support Flash Lite.
I know a truth, Nokia S60v3 Symbian OS at least support it
https://en.m.wikipedia.org/wiki/File:Nokian97.png
Ruffle doesn't support phone keys?
Some directional controller is arrows, some D-Pad(8way,4way) with/without OK/Fire(I don't what's it's name)
That N97 directional controller left side
I know some other controller like trackball,touchpad for mobile phone

Why don't you add Touchpad?
https://en.m.wikipedia.org/wiki/Touchpad
Use it like your phone screen,
It should support multiple fingers, gestures and others I don't know how to say
there're 2 mouse keys for Touchpad at the bottom
I think these 2 Touchpad keys can be added on screen individually if you choose Touchpad mode
Mouse: Touch, Real-like, Touchpad, Off

That's what? Notebook or Laptop?
English isn't my native language

Add a "menu" button to the toolbar, it won't be hidden. After tapping it you can use all the settings without tapping the "More" button in the toolbar
All settings are presented as a list, through which you can change/add or remove toolbar buttons and sorting
After opening the menu page, the background is transparent, and the player will be paused. You can click the first “resume” to return to the player page, and it will unpause and continue playing
On the menu page, you can also replace other swf file or exit (the last one). The bottom three-button navigation bar will also be displayed

menu page like these but more option categories
https://image.winudf.com/v2/image1/Y29tLmV4cGx1c2FscGhhLlN3YW5FbXVfc2NyZWVuXzBfMTY2Mjc3NDI4N18wOTg/screen-0.webp?fakeurl=1&type=.webp
https://image.winudf.com/v2/image1/Y29tLmV4cGx1c2FscGhhLkx5bnhFbXVfc2NyZWVuXzJfMTY4MDczNTg0Ml8wNjE/screen-2.webp?fakeurl=1&type=.webp

@soundsnow
Copy link
Author

Those are 240x320
These are 320x240
I don't like Rounded Rectangle (Navigation bar, Status bar and Notch)
Screenshot_20230702-204823_Trebuchet
Screenshot_20230702-204612_Trebuchet
Screenshot_20230702-204136_Trebuchet

@soundsnow
Copy link
Author

I think you should save one (two total) button layouts each for Landscape and Portrait. Unless your screen has an aspect ratio of 1:1, the display will be messed up after you switch.
for example
Add Portrait button layout for qweswf, switch to Landscape and it will not be displayed. Because you need to add a new button layout for Landscape

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

Windows 11: Settings - Bluetooth & devices
Mouse, Touchpad, Touch (hidden because of Non-Touchscreen?), Pen

I don't have a Windows 11 PC. I think They're useful for Ruffle Android
pure white make eyes die earlier
Touchpad_settings-1
Touchpad-Settings-Windows-11-1280x830

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

I remember Flash support Camera and Microphone
For my Android 12 phone
you need to allow Mic access and Camera access permissions
But I don't what flash productions support these 2 hardware
Windows 11 also support Camera and Microphone, you can add some settings from them
I guess ruffle doesn't support them currently, it's used to play games or animations by most people

@soundsnow
Copy link
Author

soundsnow commented Jul 2, 2023

Microphone source:
Device Hardware
Noise (Non Hardware)
Background Music player (Non Hardware)

add a button
microphone button

record volume
reduce echo

display
enable hardware acceleration

camera source:
front
back
I know an open source Game Boy Color emulator GBCC supports 2 cameras for camera cartridge games. It have Google play version and github debug version

if you know more knowledge
how about this
They're used to do different things
front 1, front 2
back 1, back 2, back 3, back 4

@soundsnow
Copy link
Author

Toolbar is used like Android's quick setting for quick access, but it can't let you manage all settings
you can add or remove some of them on/from toolbar
what's QS? How do you enable Mobile data or WiFi?

Touchable/Draggable Scrollbar, Slidable Tabs, Slider+Inputted Value, Switch, Search

Settings Categories

Graphics: Rendering mode, Framerate control, Speed Hacks, Performance, Texture Scaling, Texture Filtering, Google Cardboard VR settings, Camera, Hack settings, Overlay Information

Controls: Controls, On-screen touch controls, Keyboard control settings

Audio

Networking

Tools

System: UI, Flash memory (savedata?), Emulation, General, Flash settings

Search: Find settings

About History/Recent page
limit to 10 contents to avoid waste of RAM
add a Clear list to bottom of that page

@soundsnow
Copy link
Author

soundsnow commented Jul 3, 2023

Settings subpages
top left a back button

manage toolbar like Android Language manager
you can sort, add or remove them
Screenshot_20230703-092714_Trebuchet
Screenshot_20230703-092705_Trebuchet
Screenshot_20230703-092652_Trebuchet

back|remove
toolbar
left|right
refresh|menu
close|screenshot
open|zoom
add

you can also access menu page or settings by tapping virtual keyboard cog/gear.

Another thing, remove toolbar "Ruffle"
We know its name by the way this will reduce app size
Commonly used buttons should be left side of toolbar

I used an app, it scan files faster before Android 11
after updating, it scan files slower
that developer optimize code, then it's slower than Android 10, but it's faster than previous Android 11 build.
that app is Snes9x EX+, i prepared 4000+ zip files 3GB+ to test
So I think optimizations are important if you want to it cost less time to scan a large folder files
you can also access chosen folder's subfolders

About "REscan Automatically"
don't do that automatically, it's harmful to hardware life.
this is what I recommend

choose a folder (scanning), show file list
force stop and reopen app, show file list (not scanning)
if you want to rescan,
you can access its subfolder then back to that folder
or
stay current folder, tap rescan button

what i don't want to be happened
rescan folder after open app everytime
rescan folder after you exit from a content
rescan when you're searching

@soundsnow
Copy link
Author

record or expert to videos (music and no music), music or pictures (including gif, Vector format)

macro keyboard virtual button or real hardware
macro mouse virtual button or real hardware

if you bought some expensive gaming mouse, you'll see those keys
as far as i know, some styluses also have shortcut

Magic Touch by Nitrome
https://youtu.be/eoIn6DuwNPg
This game is so hard

difficulty
Touchpad hard
Mouse normal
Touchscreen easy
graphics tablet+stylus easy

but it will be faster and faster
so virtual button mouse macro is needed

first, you need to tap toolbar pause button to pause it
select mouse status: hold leftkey
then draw U O V C Z N M and more. move these virtual buttons on screen
disable mouse to avoid screen mouse behavior
you can unpause after drawing first, wait for next draw second then unpause wait for next draw third
finally, you only need to do is tap buttons

mouse macro tools allow users
redo, undo, 2 points connect to a line, leftkey hold/release/click (step by step or full steps), teleport (click/hold/release)

you can specify which line is hold or release (move only)

what's teleport?
Scary Maze: you're cheating (actually some touchscreens support this, it's not cheating)
(56,29) to (96,87) within 1 frame

how to draw a good line?
line tool, first point to second point
choose how you draw? hold leftkey or just move mouse to second point!
if you did something wrong, undo and redo.

@soundsnow
Copy link
Author

soundsnow commented Jul 6, 2023

custom palette possible?
some flash games are 1bit
the big adventure of owata's life
its most levels are blackwhite, hidden levels have more colors
but its background is pure white, my eyes!!!
OLED screen: my battery power!!! my life!!! I'll die earlier
is possible to make ruffle allow user to change/edit colors to our own favorites

@soundsnow
Copy link
Author

soundsnow commented Jul 6, 2023

Add some optimizations for modern Android phones
What? Non-Touchscreen Keypad (HTC Dream like or T9) Android phones
I know some manufacturers are still selling these
Japanese Android phones (Non-Touchscreen)
Qin (Duoqin) Android phones in China (Non-Touchscreen
KaiOS phones, I know it's not Android OS. But it proved someone needs non-touchscreen.

can you remove or make some unnecessary codes be shorter to reduce app size? Ruffle rust upstream and Java frontend

These are made for old touchscreen phones and old touchscreen mobile PCs support Flash and Flash Lite

Input methods:

  • For simulated touch input, there are three options:
    • Mouse/trackpad input (tap/hold/drag by pressing the left mouse button)
    • Virtual cursor using the right analog stick on a game controller (tap/hold/drag by pressing the stick or the right shoulder button)
    • Real touch input, if you're on a device that has a touch screen
  • For simulated acceleremeter input, there are two options:
    • Tilt control simulation using the left analog stick of a game controller
    • Real accelerometer input, if you are using a phone, tablet or some other device with a built-in accelerometer (TODO: support game controllers with accelerometers)

@soundsnow
Copy link
Author

soundsnow commented Jul 7, 2023

I made a simple file list preview
cancel search, search bar, search
you can search files under current folder, not including subfolders
you can also input SWF URL to search
search bar is used to search folders (current path only) , files(current path only) and SWF URL
if you want to clear all you inputted, tap clear search button

it should support non serious search
like this Hungry Dinosaur
non serious: gry di
serious: hungry

you can tap and back to any folder you opened before
like this
Files/center/map/weak/fifth/love
i opened so many directories
tap weak back to that path, and close fifth and love paths
then it will be Files/center/map/weak

file list shows device/flash types, folders, AS (ActionScript) versions
Does Ruffle support more information like developer and game version?
your file/folder name is too long? warp words!

touchable scrollbar won't be shown because of a few files

you can also access settings
image1

@soundsnow
Copy link
Author

does ruffle support ff(fast-forward)and slow motion?
more than 1.00 speed and less than 1.00 speed
custom value+slider, they can't be 1.00 or 0
add these virtual buttons on screen or toolbar
tap ff it's 4.5 speed, tap again it's 1.00 speed
tap sm it's 0.35 speed, tap again it's 1.00 speed
tap ff then tap sm, it will change speed from 4.5 to 0.35, then sm again it's 1.0 speed

@soundsnow
Copy link
Author

soundsnow commented Jul 7, 2023

i don't like to import files to Android/data, because they will be deleted if you uninstall this app
saves and some other files can be export or share to others if 2 people are playing same game. Another one want your save files to unlock extra or paid levels (twin shot?)

@soundsnow
Copy link
Author

you can hide buttons and button groups one by one or hide them all directly using checkbox (De)Select All

@soundsnow
Copy link
Author

soundsnow commented Jul 7, 2023

Frame Selector
Seeker
Duration
FPS counter (lefttop, righttop, leftbottom, rightbottom)

Choose a frame from previous or next or far away from this frame
allow auto pause for something like screenshot
Can you add some seemed useless keys to key selector and virtual button group? F keys, top keys of arrows
PrintScreen, i remember it's used to copy screenshot to clipboard or save a screenshot
Ctrl(L or R), Alt(L or R), Shift(L or R)+ F keys
I'm not sure, mouse rightkey is useful?

you can rotate (all degrees clockwise and counterclockwise, not only 90°,180°), zoom in and zoom out, mute, ff,sm, take screenshot, generate svg,gif,png while it's paused

I remember I used a unofficial flash video player to play Nitrome Must Die
I can see its almost all animations
Aother thing is amazing, I didn't get passed first 10 bosses
I get in floor 101 to face Nitrome Boss(Mat?) directly
does ruffle support these?

If you don't know how to make a video player UI, I recommend VLC Android

@soundsnow
Copy link
Author

flash file manager vs cache manager?
I remember when the computer was saving or displaying too much resources for a Flash game, the player would freeze/"laggy" a lot.
The solution is to reduce the browser window (resolution) or reduce the quality or delete the cache?
I don't know what those files are called. It seems that their file names are randomly generated. They seem to contain the progress data of the game. They cannot be deleted unless necessary.
Can you add a file manager, you can export captured resources, data files and configuration/profile files, or delete them to move their paths, and you can also create or delete your own folders

@soundsnow
Copy link
Author

some ways to play racing games

an accelerate button in toggle mode
gyroscope supports steer left/right or steer left+accelerate/right+accelerate
touch half sides of screen to steer
hold from left/right to right/left to draw a steering line

@soundsnow
Copy link
Author

Allow the user to set boundaries for mouse movement, if you are using a gyroscope, accelerometer or Xbox controller
Does Flash support Xbox controllers? I don't think Microsoft will pass up this opportunity to promote the Xbox controller, I think Adobe may have added support for it
In addition to racing games, I think there is another type of game that is suitable for gyroscopes and accelerometers. Such as Arkanoid/Breakout and Pong (1 Player mode)
These games are generally controlled by Paddle instead of DPad, because DPad responds slowly at a constant speed, while Paddle and Analog Stick seem to be at a linear speed. I think gyroscope, accelerometer should also be linear velocity. If you want to play two-player Pong with an Xbox controller, I recommend using two Analog sticks, but most games don't support linear speed, so you can use a DPad too. I remember that the button of the first generation Xbox controller is also linear speed, and its two triggers, like the GameCube, show different effects according to the force pressed

graphics tablet (also known as a digitizer, digital graphic tablet, pen tablet, drawing tablet, external drawing pad or digital art board) should also support linear speed
I mean pen pressure levels
8192, 4096, 2048, 1024, 512
I owned a wacom pen tablet and stylus, it was destroyed by someone
The level of pressure sensitivity makes it easy to draw thick or thin lines
That is to say, the drawing tablet can also be used to play Flash games, and it also supports pen gestures

Of course, if there is a Flash drawing application, I can also draw directly with the drawing tablet (Wacom) and stylus. Or use a stylus (S-Pen) and phone touchscreen. But I think there should not be many such applications, because most people will only choose Flash or Animate at the beginning
It sounds weird to use Flash/Animate as a painting software. Some Flash games require you to draw really well, in which case a graphics tablet and stylus are best. You can enable or disable the pressure level

@soundsnow
Copy link
Author

It seems your virtual keyboard doesn't support 3 lock key lights
like this
https://user-images.githubusercontent.com/109885044/252122553-494ec1ac-2c92-4183-9e2a-f90c2769f35a.png

@soundsnow soundsnow mentioned this issue Jul 9, 2023
@soundsnow
Copy link
Author

soundsnow commented Jul 11, 2023

Can your add support for these controllers?
They might support Accelerometer, Gyroscope, IR, Bluetooth, NFC, USB/OTG, Microphone
Wii Remote Plus (or only) + Nunchuk, Joy-Con, Switch Pro Controller, DualShock 4, DualSense

Can you allow screen sharing for Android to PC ruffle, PC to Android ruffle, Android to Android (another device) ruffle?

We need both Android and PC support Camera, Accelerometer, Gyroscope, IR, NFC, Microphone

Microphone: like this game
I don't know anymore about Flash microphone
YASUHATI (休むな!8分音符ちゃん♪)

IR: I don't know to use it.

NFC: does Flash support NFC?
Don't worry! I have my ideas of its usage
Nintendo amiibo
Another one is Hasbro Telepods for Angry Birds Go/Stella/Star Wars 2
Angry Birds Star Wars 2 - Introducing Telepods
I wanted to create a flash game support NFC.
It's a card game like Yu-Gi-Oh! cards and Pokémon cards. Import character/item data into my cards. My turn NFC transfer data. Next is/are opponents' turn(s). It's a 2 player or more than 2 player game. You can play this game on device or more devices or screen sharing (PC monitor). If host player open swf, guest players connect with host player, blackscreen or screen sharing to play it for many devices.
Or you can enter/copy-paste/clipboard input these NFC card codes, or make them be virtual buttons. NFC code (one game) manager: add, remove, rename, sort

I think some of my ideas are very useful, can you add them for Ruffle PC (Although I don't have a PC) or tell these to Ruffle main developers?

@soundsnow
Copy link
Author

soundsnow commented Jul 11, 2023

I don't recommend to enable screen rotation while you're playing a game requires a mouse and touchscreen. because it's rotated by frontend, that virtual device doesn't get rotation. Frontend is twisting your neck 90°, 180° for you.

Some flash games support device orientation like Symbian and other system mobile devices

Sniper vs Sniper
It's not made for E5 (320x240) obviously because of its aspect ratio and non-touchscreen. A touchscreen S60v5 device 5800 (640x360) fully support. make it be 360x640

These 3 are completely different. Android Orientation is your real Android device. Screen Rotation is your fake neck/head. Virtual System Orientation is original device can play that game, you don't have that device because Android is your real device.

Android Orientation: Default, Auto, Portrait, Landscape

Virtual System (Symbian and others) Orientation: Default, Auto, Portrait, Landscape

Screen Rotation: 0, CW90°, CCW90°, 180°

Screenshot_Sniper vs Sniper 2_20230711-030404
Screenshot_Sniper vs Sniper 2_20230711-030453

@soundsnow
Copy link
Author

soundsnow commented Jul 11, 2023

data modifier, RAM value editor, trainer, cheater
I don't know what's that in English
https://gameguardian.net
“GameGuardian” is a game cheat / hack / alteration tool. With it, you can modify money, HP, SP, and much more. You can enjoy the fun part of a game without suffering from its unseasonable design.

It's a powerful tool. But!!! Root permission required. You'll get useless non-game values of emulator frontend.

Can you add a cheat tool for ruffle?

Other features
swf file/folder decompiler, TASing framework (Speedrun Tool: Halfway/AllTheWay Enable), libraries for working with gamedata

folders for different files
Putting all files in one folder increases scan time, so we need not only one folder

Will Ruffle developers add support for save/load states?
I don't like too many duplicates like State1, State2, State3. Too bad.
State: 0,1,2,3,4,5,6,7,8,9
Save/Load (Toolbar buttons)
You can choose a State slot from 0 to 9
All State slots can be saved at anytime by tapping Save button
saved State slots will be white fonts, unsaved State slots will be black (nothing, default like its background color) fonts
You can only load saved states, unsaved states won't be loaded by tapping Load button.
if you choose a unsaved state, Load button will be hidden until you save a state for that slot

@soundsnow
Copy link
Author

soundsnow commented Jul 11, 2023

I almost forgot Ergonomic Keyboard
add Split Keyboard button groups
12345
67890
F1F2F3F4F5F6
F7F8F9F10F11F12
QWERTASDFZXC
YUIOPHJKLBNM
You can move G or V to left side or right side manually

I don't know if these are true!
In the last century, you could buy a separate Numpad to connect to a Commodore computer
I don't know if it was possible to buy individual arrows in the last century, I only know that Commodore sold Plus/4 Computer

@soundsnow
Copy link
Author

some other button groups
PrtScn, ScrLk, Pause
Insert, Delete, Home, End, PgUp, PgDn
F1F2F3F4
F5F6F7F8
F9F10F11F12
PrtScn, ScrLk, Pause, Insert, Delete, Home, End, PgUp, PgDn

Arrows and Numpad are full of their own button groups

@soundsnow
Copy link
Author

soundsnow commented Jul 11, 2023

a few button groups

Tab, Caps Lock, Shift (L), Ctrl (L)
Backspace, Enter, Shift (R), Ctrl (R)
Alt (L), Space, Alt (R)

You can customize the length of space bar
resize Alt keys and space bar

@soundsnow
Copy link
Author

You better simplify the names of all buttons to fit small screen devices
These are my own naming
Esc, Tab, CapLk(Is CapsLk?), LShift, LCtrl, LAlt, BS, Ent, RShift, RCtrl, RAlt, PrtScn, Pause, Ins, Del, Home, End, PgUp, PgDn, NumLk
After you turn on/off Shift/Lock keys (Non-Shift+Caps Lock key), key texts will be changed, Lock keys lights on/off, I mean 3 keys' color will be from transparent to green
One more thing, your arrow texts are wrong, they're not shift enabled/disabled keys
Allow users to use Which one Shift+Caps Lock 2 in 1 key or individual Shift keys and Caps Lock key

@soundsnow
Copy link
Author

built-in keyboard
In Landscape mode, the compact layout cannot be adjusted, and the left and right sides cannot exceed the status bar (camera Notch and rounded rectangle) and 3-button navigation bar (away from the rounded rectangle and USB interface)
The image I uploaded shows that the left and right sides are empty, with the camera on the left and the navigation bar on the right. They are not displayed (to prevent accidental touch), I just let you know that they exist
In Portrait mode, the bottom of the keyboard is arrows and keyboard settings (directly to menu-settings-keyboard), which cannot occupy the position that should belong to the navigation bar.
Left and right arrows and up and down arrows are separated by default
They are too small, my four fingers are bigger than the four S-Pen, and it is too difficult to press the four small arrows with my right hand.
The left and right arrows are used more frequently than the up and down arrows, so by default, the left and right arrows are on the right, and the up and down arrows are on the left
Of course, you can also replace and change the position of the four arrows in Portrait mode in the keyboard settings
As for your original two toolbar buttons under the keyboard, I suggest moving them to the left or right of the top toolbar (Ruffle bar) and removing the Ruffle text because the top is almost empty (only a back button) but you added them at the bottom The toolbar, which violates ergonomics, not only raises the position of the keyboard slightly, but also allows the hardware to compute an extra toolbar. In Landscape mode, the occlusion of the screen is more serious. In Portrait, the occlusion of the vertical screen is also increased.

@soundsnow
Copy link
Author

Portrait keyboard bottom line
up down settings left right (default)
up down settings right left
up left settings down right
up left settings right down
up right settings down left
up right settings left down
down up settings left right
down up settings right left
down left settings up right
down left settings right up
down right settings up left
down right settings left up
left up settings down right
left up settings right down
left down settings up right
left down settings right up
left right settings up down
left right settings down up
right up settings left down
right up settings down left
right left settings up down
right left settings down up
right down settings up left
right down settings left up

@soundsnow
Copy link
Author

not only zoom in/out manually
The display of many pictures on the screen will be abnormal. Generally, the background layer needs the most pixels
Please don't let the keyboard cover the canvas, the background of the keyboard should be transparent (except the Lock light keys)
The keyboard is off by default, you can turn it on in the settings, or put the keyboard display button on the toolbar
When the keyboard is opened, the canvas is aligned to the top and it can be covered by the keyboard at the bottom. I suggest that you'd better not make the keyboard particularly high. When the canvas is particularly high and important operations are at the bottom of the canvas, you can use the zoom tools to re-align it with the top after the zoom in is complete.
I recommend introducing a new tool, the magnifier. Windows 11 should have this tool. The screen of the mobile phone is a bit small. Even if the resolution is high, some things are still unclear.
After opening a tool, you can let the pause automatically open or manually enable pause
After closing a tool, you can let the play automatically open or manually enable the play

Quick adjust screen size tool
Open the swf file with this app, and many pictures are beyond the boundaries of the screen. For and without adding a Fit Screen tool
Fit: canvas, Background Layer
You can choose one of the background layer and the canvas, the default is the background layer

I don't know if Flash has canvas size, if not you can customize the canvas size

Here is an example, turn on the fit background layer
I know Flash is vector?
Scale: Vector (High resolution same as device), Software (Low custom resolution)

If this is a vertical shooter game
Background Layer Size: 96x257
Device Resolution: 1920x1440, 1440x1920
257/96=2.67
1440/2.67=539.32, 1920/2.67=719.10
Landscape Screen Size: 719.10x1920
Portrait Screen Size: 539.32x1440

@soundsnow
Copy link
Author

we need flash file info viewer for one or multiple files
video: codec, resolution, framerate
audio: codec, channels, sample rate
demux bitrate, input bitrate

flash video/music
flv and other f?? files
you may need GUI and codecs of foobar2000, vlc, ffmpeg for different file formats

flash saved aspect ratio
so we can customize the resolution of flash content (s), you can set width and height both values lower than your screen resolution
you can keep its customized resolution without enable low resolution scale (non-vector) or high resolution vector. I mean keep small screen size and disable all scale tools if you like that.
set its scaling mode first, vector (real high/low resolution), non vector (fake high/low resolution)

vector is on by default because it's original flash
non-vector may make it smoothly if too many files make vector mode laggy

if you're playing a 1:1 aspect ratio flash game, don't calculate too many values

how to customize resolution?
this is a 16:7 flash game
you can input width or height
input width 472
tap height, it will be calculated automatically, it's 207
you don't need to input two values, only one value
input one value tap another, it will be calculated by your device

@soundsnow
Copy link
Author

soundsnow commented Jul 13, 2023

I recommend placing the screen on top by default. Because we generally place tools and virtual gamepad at the bottom of the screen (non-status bar and navigation bar position) or on the left and right sides.
bottom: keyboard, gamepad, tool buttons
That's why flash screen should at the top of screen
and your fingers will cover the screen if you're playing a game requires keyboard only

@soundsnow
Copy link
Author

You can add tools to toolbar and non-toolbar area
you don't like toolbar because of small screen to play a flash game in landscape mode? no problem, you can hide toolbar, add tools on screen and resize and button groups

@soundsnow
Copy link
Author

soundsnow commented Jul 13, 2023

two choices

This is default file paths I recommend: Android/data/rs.ruffle/

You can also save files to these folders
Documents/Ruffle
Download/Ruffle
Movies/Ruffle
Music/Ruffle
Pictures/Ruffle
Ruffle folders are only created after you save those types of files
I saved a picture file, no music files, so Music/Ruffle won't be created

You can expert files without playing them, like decompiler just select what files you need, then expert

If you're playing/watching a flash game/animation, you can record music/video clips, take screenshots, or copy a text to a txt file

you can use decompiler to expert mp3, wav, mid, png, jpg, as and more types of files

I don't recommend export or record all files to non Android/data folders. Because those are Android built-in folders all I think might be useful

You can download and play, the downloaded files can be kept or not. If you just want to play it without saving it, Download/Ruffle folder won't be created

@soundsnow
Copy link
Author

You can also take a cropped screenshot/video if you don't like full size

@soundsnow
Copy link
Author

Open a SWF music game, go back to the Android home launcher, the music is still playing, go back to Ruffle again, it's black screen, but the music can still be heard.
It's better to have it pause and mute the sound after switching from Ruffle to another app or Android home launcher. Returning to Ruffle from the Android home launcher is better to stop showing a black screen.
Can you fix the bug where you can't open the second SWF file?
FLV and FLA also seem to be formats supported by Flash

@soundsnow
Copy link
Author

Shift keys shorter name
LSft, RSft

@soundsnow
Copy link
Author

2 or more same/duplicate keys are allowed to add on screen
you can jump with your left hand or right hand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants