-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Accel sensor emulation #626
base: android
Are you sure you want to change the base?
Conversation
add notification if sensor are enabled or disabled in settings
use NotoSerifCJK-Regular because it exist in all android build and it designed for non asci languange text
vita3k/lang/include/lang/state.h
Outdated
@@ -645,7 +645,8 @@ struct LangState { | |||
{ "reset_emu_path", "Reset Emulator Path" }, | |||
{ "reset_emu_path_description", "Reset Vita3K emulator path to the default.\nYou will need to move your old folder to the new location manually." }, | |||
{ "custom_config_settings", "Custom Config Settings" }, | |||
{ "clear_custom_config", "Clear Custom Config" } | |||
{ "clear_custom_config", "Clear Custom Config" }, | |||
{ "sensor_settings", "Buildin Sensor settings" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change order, set it before, respect order like is visible inside setting dialog 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm
@@ -151,6 +151,8 @@ enum PerfomanceOverleyPosition { | |||
code(bool, "spirv-shader", false, spirv_shader) \ | |||
code(bool, "fps-hack", false, fps_hack) \ | |||
code(uint64_t, "current-ime-lang", 4, current_ime_lang) \ | |||
code(bool, "acceleration-and-gyroscope", true, tiltsens) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For name of option using same for both, with jyste replace - by _ in left, like other
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 |
hmm eventhough it's exist why vita3k always report in log that font not exist? |
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 |
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 |
why vita3k not use built-in system fonts like android and windows system fonts? |
i juste no really why crzate this pr for android build 🤔 |
or should i add
or do like this?
it should be fine for both build |
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) |
I agree with you, where is the need to worry about power consumption of a few mW? |
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](https://private-user-images.githubusercontent.com/79812109/326153535-c3151ef8-6ec2-4f8a-aaa3-3582361b2876.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTEyNjcsIm5iZiI6MTczOTE5MDk2NywicGF0aCI6Ii83OTgxMjEwOS8zMjYxNTM1MzUtYzMxNTFlZjgtNmVjMi00ZjhhLWFhYTMtMzU4MjM2MWIyODc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEyMzYwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4ZWEwMjZkM2I5OTlkMDA0YWRjMjc3MTNjMTljYjc5OTMyZWFlYzcxMjcwODkwZmFhOTU1YjNhNGQ4MDMwYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WMmyL9bxQ2Azrq_apRsRF7avv5w0JHioQWXRXOJGzUU)
![Screenshot_20240427_123300_Vita3K](https://private-user-images.githubusercontent.com/79812109/326153542-e359c461-d1e3-4f5b-9f3b-f173e784a0be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTEyNjcsIm5iZiI6MTczOTE5MDk2NywicGF0aCI6Ii83OTgxMjEwOS8zMjYxNTM1NDItZTM1OWM0NjEtZDFlMy00ZjViLTlmM2ItZjE3M2U3ODRhMGJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEyMzYwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiYWVkNTUwZWU3MWI0OGZkZjRjMTdlM2JiOWY1MDZlZmFlNTllNDJlYmI4N2EwZDE2ZDk3MjAyNTdlM2FiY2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ogjnvMnywfAnDhPavdVyzGOT1DjkXKhPCcPypPgxFNA)