Vita3K-Android icon indicating copy to clipboard operation
Vita3K-Android copied to clipboard

Accel sensor emulation

Open ikhoeyZX opened this issue 10 months ago • 15 comments

Allow emulating acceleration position (x position only) to fix spesific rotation instead using sensor, it used for reduce power in case game it self not using sensor

maybe in some arcade game need fix to portait mode so you can play it in bed without get random rotating

*also i did fix asian font in android

screenshot: Screenshot_20240427_123256_Vita3K Screenshot_20240427_123300_Vita3K

ikhoeyZX avatar Apr 27 '24 04:04 ikhoeyZX

done, like this?

ikhoeyZX avatar May 24 '24 14:05 ikhoeyZX

done, like this?

i thinks yes, i am just not sur font font change 🤔

Zangetsu38 avatar May 30 '24 03:05 Zangetsu38

done, like this?

i thinks yes, i am just not sur font font change 🤔

for font (SourceHanSansSC-Bold-Min.ttf) it's not exist in android (i did compare 5 phones with different OS), so i just use alternative buildin android unicode font and it's fix invisible fonts when "enable asia font" thicked. also i did test it using chinese, japanese and korean text and no issue

ikhoeyZX avatar May 30 '24 05:05 ikhoeyZX

done, like this?

i thinks yes, i am just not sur font font change 🤔

for font (SourceHanSansSC-Bold-Min.ttf) it's not exist in android (i did compare 5 phones with different OS), so i just use alternative buildin android unicode font and it's fix invisible fonts when "enable asia font" thicked. also i did test it using chinese, japanese and korean text and no issue

the font is exist, included licenses. default_font isn't important, is need for gui text, all most time used vita font

Croden1999 avatar May 30 '24 05:05 Croden1999

done, like this?

i thinks yes, i am just not sur font font change 🤔

for font (SourceHanSansSC-Bold-Min.ttf) it's not exist in android (i did compare 5 phones with different OS), so i just use alternative buildin android unicode font and it's fix invisible fonts when "enable asia font" thicked. also i did test it using chinese, japanese and korean text and no issue

the font is exist, included licenses.

hmm eventhough it's exist why vita3k always report in log that font not exist? maybe i need check font calls

ikhoeyZX avatar May 30 '24 05:05 ikhoeyZX

hmm eventhough it's exist why vita3k always report in log that font not exist? maybe i need check font calls

U r not push the font in data/fonts, i think should revert, add Korean ttf/ttc font and license

Croden1999 avatar May 30 '24 05:05 Croden1999

hmm eventhough it's exist why vita3k always report in log that font not exist? maybe i need check font calls

U r not push the font in data/fonts, i think should revert, add Korean ttf/ttc font and license

ok i'm gonna revert it

ikhoeyZX avatar May 30 '24 06:05 ikhoeyZX

Screenshot_20240530_142846_FX

actually it's exist in .apk but tried call it always got "not found" same like user lang i did test copy to vita3k (ua.xml) maybe i need android studio to "add" it

ikhoeyZX avatar May 30 '24 06:05 ikhoeyZX

actually it's exist in .apk but tried call it always got "not found" same like user lang i did test copy to vita3k (ua.xml) maybe i need android studio to "add" it

i know, look this log, here is not exist fonts in pref_path/sa0, only need install font firmware, no have change font Screenshot_2024-05-30-14-37-16-927_bin mt plus

Croden1999 avatar May 30 '24 06:05 Croden1999

i push the cjk font in #3020, is fixed ZH-S/ZH-T/Korean text issue, but the font size and bulid are too big, and then i give up push the cjk font, only added the ZH-S font and license

if wanna fixed display Korean GUI text when you used default font, you need push font file in https://github.com/Vita3K/Vita3K-Android/blob/android/data/fonts/, and update code in gui.cpp

Croden1999 avatar May 30 '24 06:05 Croden1999

why vita3k not use built-in system fonts like android and windows system fonts? because license or what?

ikhoeyZX avatar May 30 '24 07:05 ikhoeyZX

i juste no really why crzate this pr for android build 🤔 It is totaly for for main master too

Zangetsu38 avatar May 30 '24 08:05 Zangetsu38

or should i add

#ifdef ANDROID

or do like this?

const auto fontpath = fs::path(default_font_path / "SourceHanSansSC-Bold-Min.ttf");
                if(!fs::exists(fontpath))
                    fontpath = fs::path(default_font_path / "NotoSerifCJK-Regular.ttc");

const std::vector<uint8_t> font_source = fs_utils::read_asset_raw(fontpath);

it should be fine for both build

ikhoeyZX avatar May 30 '24 10:05 ikhoeyZX

i juste no really why crzate this pr for android build 🤔 It is totaly for for main master too

reason i make this PR because most vita games not using this sensors, so it just waste some power in android while in pc this sensor didn't exist (except connecting controller)

ikhoeyZX avatar May 30 '24 10:05 ikhoeyZX

i juste no really why crzate this pr for android build 🤔 It is totaly for for main master too

I agree with you, where is the need to worry about power consumption of a few mW?

nishinji avatar May 30 '24 11:05 nishinji