cajus wrote: > Can you give me a hint which file(s) to modify? Thank you for taking a look at this.
kolossos4730 wrote: > The modifications to Keyboard.lua will influence all skins. but should > only be used for the Joggler skin on the official Raspberry Pi display. > This is the only skin supported by the piCorePlayer devs at the moment > and is the only skin where touch works correctly. > > If I look at the source code of Keyboard.lua they had the intention of > making it resolution independent but opted for hardcoded width and > height values. If my changes needs to be skin/resolution independent > this requires a rewrite of Keyboard.lua, taking into account the > different display and skin resolutions and this is beyond my lua skills > :(. Thanks Arie, I had hoped there was an easier way. I've modified Keyboard.lua to apply your values when the skin width is 800 otherwise the original values are used. The only caveat is the values are set when jivelite starts. If you change the skin, you need to restart jivelite. Code: -------------------- --- Keyboard.lua.orig 2015-10-11 08:50:33.000000000 -0400 +++ Keyboard.lua 2016-07-03 08:34:51.000000000 -0400 @@ -321,7 +321,18 @@ local screenWidth, screenHeight = Framework:getScreenSize() local keyWidth - local rowWidth = 460 + local rowWidth + + if screenWidth == 800 + rowWidth = 780 + default = { + width = 78, + height = 75, + } + else + rowWidth = 460 + end + -- self.keyboard has the keyboard, table of rows of key objects -- self.rowInfo has metadata about the keyboard, e.g., keyWidth or spacer -------------------- I've uploaded a test build to the picoreplayer beta files area. To try it, ssh into picoreplayer Code: -------------------- pcp bu # save pcp config cd /mnt/mmcblk0p2/tce/optional wget -O jivelite.tcz.md5.txt http://downloads.sourceforge.net/project/picoreplayer/beta/jivelite_touch.tcz.md5.txt wget -O jivelite.tcz http://downloads.sourceforge.net/project/picoreplayer/beta/jivelite_touch.tcz md5sum jivelite.tcz # make sure the file downloaded correctly 64a958204f1f6a719f9aaa80e7356f68 jivelite.tcz cat jivelite.tcz.md5.txt # does it match the line above? 64a958204f1f6a719f9aaa80e7356f68 jivelite.tcz pcp rb # you must reboot! -------------------- If you receive the message *wget: download timed out*, just rerun the wget command(s) that failed. I've been getting a lot of errors from SF lately. Ralphy *1*-Touch, *5*-Classics, *2*-Booms, *1*-Reverted UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ------------------------------------------------------------------------ ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=103330 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix