Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2013, 04:28 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post mancala KUAL (native) PW/Touch

So yeah.

Learning new skills
http://xforms-toolkit.org/

I found something to hack on.

UPSTREAM http://ftp.de.debian.org/debian/pool....debian.tar.gz
mancala
basic but fun.

Enjoy.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_09_28T20_13_33+0000.png
Views:	766
Size:	29.3 KB
ID:	112310   Click image for larger version

Name:	screenshot_2013_09_28T20_13_40+0000.png
Views:	662
Size:	31.7 KB
ID:	112311  
Attached Files
File Type: zip mancala-KUAL-KINDLE-5-PW.zip (277.3 KB, 412 views)

Last edited by twobob; 09-29-2013 at 07:51 AM.
twobob is offline   Reply With Quote
Old 09-28-2013, 05:46 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
won my first game
yay.

lol.
twobob is offline   Reply With Quote
Advert
Old 09-29-2013, 12:47 AM   #3
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
mancala..?
you've really gone retro..

Last edited by nasser; 09-29-2013 at 02:44 AM.
nasser is offline   Reply With Quote
Old 09-29-2013, 03:09 AM   #4
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Seems tooo tiny on the PW..
See attached screenshot..
Is there an option to resize it..?
Attached Thumbnails
Click image for larger version

Name:	xmancala_Screenshot from 2013-09-29 12:36:22.png
Views:	399
Size:	108.1 KB
ID:	112336  
nasser is offline   Reply With Quote
Old 09-29-2013, 03:57 AM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
Seems tooo tiny on the PW..
See attached screenshot..
Is there an option to resize it..?
Notice its placement with respect to the Amazon UI layers.

**Nothing** in the Amazon UI layers has a higher display priority.
**Nothing** in the Amazon UI has a higher event capture priority.

**AND** it is still being managed by the Kindle's window manager.

Those are the significant things to notice.
Size? Trivial.
knc1 is offline   Reply With Quote
Advert
Old 09-29-2013, 07:50 AM   #6
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by nasser View Post
Seems tooo tiny on the PW..
See attached screenshot..
Is there an option to resize it..?
hmm.. I will have to have another hack at the core code.


Quote:
Originally Posted by knc1 View Post
Notice its placement with respect to the Amazon UI layers.

**Nothing** in the Amazon UI layers has a higher display priority.
**Nothing** in the Amazon UI has a higher event capture priority.

**AND** it is still being managed by the Kindle's window manager.

Those are the significant things to notice.
Size? Trivial.
Yup. What knc1 said here was the thrust of the hacking...

But I guess I should try to "focus down" making it playable...
On the pile TODO:

which is a big pile now

(fix rotation in glaculator, finish osmo, blah blah blah)
perhaps YOU would fancy a nose around in the code?????

(I linked it and everything...)
twobob is offline   Reply With Quote
Old 09-29-2013, 08:10 AM   #7
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Osmo <3
Aeris is offline   Reply With Quote
Old 09-29-2013, 08:12 AM   #8
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
I could nose around..
But dunno if i could smell much..
But yes.. you are a one man porting army..
Need more soldiers..
nasser is offline   Reply With Quote
Old 09-29-2013, 08:16 AM   #9
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by nasser View Post
I could nose around..
But dunno if i could smell much..
But yes.. you are a one man porting army..
Need more soldiers..
Hey 24 hours ago I too had never heard of xforms...

Only one way to find out...
twobob is offline   Reply With Quote
Old 09-29-2013, 08:18 AM   #10
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by Aeris View Post
Osmo <3
Yup. pulling together the pieces.

Code:
"L:D_N:dialog_ID:thing_RKB:true"
(leave space for a keyboard)

bit by bit...
twobob is offline   Reply With Quote
Old 09-29-2013, 12:14 PM   #11
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by nasser View Post
Seems tooo tiny on the PW..
See attached screenshot..
Is there an option to resize it..?
http://xforms-toolkit.org/doc/xforms_6.html#IDX141

get your hands dirty
twobob is offline   Reply With Quote
Old 09-29-2013, 02:09 PM   #12
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by twobob View Post
Looking through xform.c from mancala, it looks to me like all the objects have hard-coded sizes for everything - text size, even.

Code:
 fdui->holeT0 = obj = fl_add_button(FL_NORMAL_BUTTON,65,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,100);
  fdui->holeT1 = obj = fl_add_button(FL_NORMAL_BUTTON,105,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,101);
  fdui->holeT2 = obj = fl_add_button(FL_NORMAL_BUTTON,145,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,102);
the hole size seems to be 40x40 and the others must be placement on a grid. To make this bigger, I would guess it would be a total rewrite of this file PITA! Even though I LOVE mancala, this would be a very time consuming job...
brianinmaine is offline   Reply With Quote
Old 09-29-2013, 02:17 PM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by brianinmaine View Post
Looking through xform.c from mancala, it looks to me like all the objects have hard-coded sizes for everything - text size, even.

Code:
 fdui->holeT0 = obj = fl_add_button(FL_NORMAL_BUTTON,65,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,100);
  fdui->holeT1 = obj = fl_add_button(FL_NORMAL_BUTTON,105,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,101);
  fdui->holeT2 = obj = fl_add_button(FL_NORMAL_BUTTON,145,60,40,40,"");
    fl_set_object_boxtype(obj,FL_DOWN_BOX);
    fl_set_object_lcol(obj,FL_SLATEBLUE);
    fl_set_object_lsize(obj,FL_HUGE_SIZE);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
    fl_set_object_callback(obj,doHole,102);
the hole size seems to be 40x40 and the others must be placement on a grid. To make this bigger, I would guess it would be a total rewrite of this file PITA! Even though I LOVE mancala, this would be a very time consuming job...
It might be no more work than to re-write it to read those values from a configuration file.

In fact, it looks like that layout could be 'normalized' to calculate at start-up time from a few configuration file key values.
(grid size x.y, stride x, stride y - something like that)
knc1 is offline   Reply With Quote
Old 09-29-2013, 02:18 PM   #14
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
@Brian. riiiight.

You know I kind of recall that being the case when I read through it the first time.
Yup. Time consuming.

There IS a gui out there somewhere I think for this stuff...
but damned if I know anything about it.

And Brian? NICE ONE! for having a look. Respect to you.
twobob is offline   Reply With Quote
Old 09-29-2013, 02:19 PM   #15
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
It might be no more work than to re-write it to read those values from a configuration file.

In fact, it looks like that layout could be 'normalized' to calculate at start-up time from a few configuration file key values.
(grid size x.y, stride x, stride y - something like that)
Damn good point.
twobob is offline   Reply With Quote
Reply

Tags
kual, mancala, native, twobob


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Midori 0.5.5 - kindle RELEASE CANDIDATE 0.x twobob Kindle Developer's Corner 240 02-28-2024 02:19 PM
KUAL DateTime Button knc1 Kindle Developer's Corner 65 11-17-2023 01:16 PM
X apps run on native touch Xorg. geekmaster Kindle Developer's Corner 88 05-14-2014 07:58 AM
Kual y backdoorlock adegir1952 Amazon Kindle 3 06-14-2013 09:44 AM
here's how to compile a gtk native app for the kindle touch chris_c Kindle Developer's Corner 9 12-21-2012 12:01 AM


All times are GMT -4. The time now is 12:18 AM.


MobileRead.com is a privately owned, operated and funded community.