733 Commits

Author SHA1 Message Date
Vincent-FK
9a9989d6ac use keymap rom and keymap default
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2021-04-26 08:15:14 +02:00
Vincent-FK
3c72c25b9e system instead of pclose RetroFE-FunKey-1.1.2 2021-04-20 10:50:48 +02:00
Vincent-FK
ec08845953 Merge branch 'FunKey' of https://github.com/FunKey-Project/RetroFE into FunKey 2021-04-19 18:39:21 +02:00
Vincent-FK
4e9b31baff applying keymap files if found. Fixed sound regression due to pclose 2021-04-19 18:39:13 +02:00
Vincent-FK
356fe72c62 fix pclose before fgets in init_menu_system
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
RetroFE-FunKey-1.1.1
2021-04-17 22:25:33 +02:00
Vincent-FK
152bae7693 add missing pclose()
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2021-04-13 23:17:34 +02:00
Vincent-FK
473e9515ec new USR1 shutdown function RetroFE-FunKey-1.1.0 2021-01-11 18:50:17 +01:00
Vincent-FK
d07ca9c5e7 Starting audio Amp only when playing sounds, stopping otherwise 2021-01-06 01:56:54 +01:00
Vincent-FK
343f64f6b8 Restore stored PID in /var/run/funkey.pid 2021-01-05 23:40:41 +01:00
Vincent-FK
63180b99a7 included sqlite3 package does not support -ffast-math implied by -Ofast optimization
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-12-25 11:11:03 +01:00
Vincent-FK
a46a594cd7 Merge branch 'FunKey' of fk:FunKey-Project/RetroFE into FunKey 2020-12-24 18:19:10 +01:00
Vincent-FK
37ddfb4806 add flag to link libmikmod
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-12-24 18:18:48 +01:00
Vincent-FK
9dad33dcfe added screen to change launcher in Menu 2020-12-13 15:28:45 +01:00
Vincent-FK
bda5f1bda8 BUG correction in PageBuilder: ReloadableScrollingText arguments were in incorrect order
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
RetroFE-FunKey-0.99 RetroFE-FunKey-1.00
2020-11-15 23:33:00 +01:00
Vincent-FK
4464de67e1 BUG correction: make rootfs RO only in saveRequest in CollectionInfo::Save
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:32:54 +01:00
Vincent-FK
a2315cb143 add functions to make rootfs RW/RO everytime something needs to be saved
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:32:47 +01:00
Vincent-FK
6cff159abf catch USR1 signal to poweroff quicker
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:32:27 +01:00
Vincent-FK
b7b91d4aae perform sanity checks if USB not connected and previous menu item was USB menu -> item set to 0 (volume)
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:32:05 +01:00
Vincent-FK
d05f503825 correct bug: move prevItem=menuItem after init_system_values
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:31:40 +01:00
Vincent-FK
70aa82fc51 correct bug in usb detection: boolean are reversed
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:31:23 +01:00
Vincent-FK
bf24872be3 propose USB in menu only if connected, also checking if already sharing
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:30:40 +01:00
Vincent-FK
2c94471981 add scroll animation in menus
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:30:33 +01:00
Vincent-FK
be9d569e78 save Utils::getFileName return string value as static in order for it to be accessible outside the function scope
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:29:46 +01:00
Vincent-FK
e2951c7b8e correct bug in pixel copy during crop in rescaling function
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:29:27 +01:00
Vincent-FK
574ab1ae30 set dithering to rgb555 instead of rgb565 as it seems the screen only supports rgb555
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:29:09 +01:00
Vincent-FK
2eb437708d BUG correction: keep_aspect_ratio does bot work for images. Now we can set the containerWidth and containerHeight params for automatic cropping
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:28:35 +01:00
Vincent-FK
21ff820179 BUG correction: trap when idx theme out of bounds when not found in menumode
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:28:24 +01:00
Vincent-FK
115641c0e9 make tweens other than linear for components now work, added TWEEN_PROPERTY_X_OFFSET_SHIFT_MENU_DIRECTION
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:28:03 +01:00
Vincent-FK
4692a90c48 reinitialize battery ast_id_ in free_graphics
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:27:38 +01:00
Vincent-FK
b0872d2374 add theme chooser in menu
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:27:31 +01:00
Vincent-FK
71d439c3f7 add xml events onMenuFastScrollPrev onMenuFastScrollNext onMenuScrollPrev onMenuScrollNext
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:27:22 +01:00
Vincent-FK
bcac9e6f4d select correct item in ReloadableScrollingText and ReloadableText when scroll is detected
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:43 +01:00
Vincent-FK
7950bffc2e correct bugs in battery update and draw process
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:24 +01:00
Vincent-FK
298afbaf68 back to SDL_Delay
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:24 +01:00
Vincent-FK
c87a50d52b reset right GET_RUN_TIME_MS
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:24 +01:00
Vincent-FK
290d160677 BUG correction: battery charge is not displayed after exiting game
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:12 +01:00
Vincent-FK
5b51c7de41 render scrolling text only if necessary
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:00 +01:00
Vincent-FK
ebc035c869 set scrolling only if needed in reloadable scrolling texts
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:25:47 +01:00
Vincent-FK
cfb2dbd880 correct 2 bugs in scrolling text: not displayed if waitEndTime<=0 and reset current position to 0 correctly
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:25:00 +01:00
Vincent-FK
7ee88a1bc9 remove hidden files from listing
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:24:38 +01:00
Vincent-FK
c154a282ff BUG correction: replace SDL_Getticks by clock() since SDL_Getticks gets full and unusable after 43days (which happens always when we get the ntp time after retrofe is started)
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:24:19 +01:00
Vincent-FK
e7e4be0d11 do not display battery untils values are ready
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:24:19 +01:00
Vincent-FK
260178ef44 BUG correction: tests for disabling or not dithering was also disabling cache for scaling, so scaling was recomputed at every frame
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:50 +01:00
Vincent-FK
2530514e55 remove dithering for test
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:46 +01:00
Vincent-FK
3576503dc3 add sierra lite dithering 32bpp or 24bpp to 16bpp for all images, reloadable media or scrolling list if requested by field dithering in xml
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:38 +01:00
Vincent-FK
69e0a51dd2 clean up the code and add onNewItemSelected when exiting game
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:25 +01:00
Vincent-FK
785449ec2a declare battery files in settings
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:15 +01:00
Vincent-FK
86f7d7e5b2 handle all events now in retrofe, do not break when an active one was found anymore -> it caused some events not to be treated causing sometimes weird behaviors
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:15 +01:00
Vincent-FK
bbc8d4b2d8 remove unnecessary layout.conf file
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:22:55 +01:00
Vincent-FK
994e9afb1b check battery component values in files, add icons for no bat and bat charging
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:22:27 +01:00