**** BEGIN LOGGING AT Sat Aug 07 02:59:57 2010 Aug 07 03:00:43 Unless there's an easier way to do what I want. I have drawers in a list and I'm trying to open them when a button in the list item is tapped. Aug 07 03:03:25 maybe listening to tap instead of listTap and using event.target.id Aug 07 03:07:30 ok so i did a for each loop and console.log()'d the event object. It has all sorts of attributes Aug 07 03:07:51 I guess i'll just have to do that whenever i need to know what the object has :) Aug 07 03:09:26 Plaid: if you don't use Ares, printing out object properties to the log or divs in a scene is pretty much the only way to go Aug 07 03:11:05 yeah, i figured Ares could do it. I'm just writing this one so I can see how each bit gets glued together Aug 07 03:11:58 I was just hoping there was a single, complete reference for each of these objects Aug 07 03:12:10 * Anivrom|devMode 's ears perk up at the mention of ares Aug 07 03:12:24 Ares is GREAT $$$ Aug 07 03:12:27 * sugardave laughs heartily at Plaid. Aug 07 03:12:43 sorry, couldn't resist :P Aug 07 03:12:54 I have to go change the light bulb now Aug 07 03:13:03 yeah, yeah. I know ;) Aug 07 03:13:49 must... resist... irc Aug 07 03:13:54 * Anivrom|devMode is away Aug 07 03:14:08 lol Aug 07 03:48:36 Anivrom|devMode: Hey Aug 07 03:51:16 hi Aug 07 03:51:30 can't talk, coding Aug 07 03:53:31 Arg Aug 07 04:07:28 kense: got the fading in jquery working Aug 07 04:09:17 LoneStar99: Grats Aug 07 04:09:21 wow the HP CEO what made inappropriate comments about the Palm is out the door just like I called it a few months ago Aug 07 04:09:22 Anivrom|devMode: I need art! Aug 07 04:09:35 what = which Aug 07 04:09:50 Palm = Palm Merger Aug 07 04:09:52 Anybody want to do my art Aug 07 04:10:10 adios Mr. Hurd Aug 07 04:10:27 Yeah that came out of nowhere Aug 07 04:10:29 LoneStar99: why not juust use webkit Aug 07 04:10:33 * Anivrom|devMode is away Aug 07 04:11:37 Anivrom|devMode: it is for a website Aug 07 04:11:45 kesne: what type of art? Aug 07 04:11:45 gotcha Aug 07 04:11:53 App art Aug 07 04:13:06 kesne: might be able to do something but depends what it is Aug 07 04:13:07 like icons? Aug 07 04:13:27 32x32 icons Aug 07 04:13:50 how many do you need? Aug 07 04:14:03 Like 5 Aug 07 04:14:53 what are the 5 themes? Aug 07 04:14:55 I need them asap too Aug 07 04:15:01 5 themes? Aug 07 04:16:10 example "stop" "go" "money" etc... Aug 07 04:16:19 oh Aug 07 04:16:31 Challenge, profile, pm, incomming challenge, outgoing challenge Aug 07 04:19:09 How can I reference a widget by name? I'm trying to use document.getElementsByName but get a div instead of my Drawers Aug 07 04:19:23 this.controller.get("widgetname") Aug 07 04:19:37 That will get widgets from the current scene you are in Aug 07 04:19:50 I believe Aug 07 04:19:58 Plaid: see above Aug 07 04:20:05 thought i tried that already, but I'll try again Aug 07 04:20:34 kesne: hmmm... "challenge --> ? | profile --> silhouette | pm --> ? | incoming challenge -->arrow pointing inward | outgoing challenge --> arrow pointing out ... Aug 07 04:20:51 LoneStar99: I knoe Aug 07 04:20:54 know Aug 07 04:21:39 challenge --> maybe a boxing glove Aug 07 04:21:41 exclamation point? Aug 07 04:22:07 how about 2 figures with a clashing symbol in between Aug 07 04:22:18 Anivrom|devMode: it's returning null Aug 07 04:22:36 bah I said I wasnt gonna be on irc tonight Aug 07 04:22:41 sorry plaid someone else has to help ytou Aug 07 04:22:47 LoneStar99: I'm not making them though Aug 07 04:22:49 No time Aug 07 04:22:59 k no prob Aug 07 04:23:00 Plaid: Exclamation point == chalenge already Aug 07 04:23:24 Anivrom|devMode: So what if I keep bugging you? Aug 07 04:23:33 kesne - whe u realeasing app? Aug 07 04:23:45 LoneStar99: When? Aug 07 04:26:46 yeah when Aug 07 04:26:53 Whenever I get the icons Aug 07 04:32:42 heh Aug 07 04:36:08 haeffb sent me a link to some icon site the other day just http://www.iconpot.com/ Aug 07 04:36:23 Oh boy, I love icon Pot! Aug 07 04:37:47 kesne: good place to get icon ideas Aug 07 04:38:12 sweet! Aug 07 04:38:15 * Plaid bookmarks Aug 07 04:38:37 * Tibfib also bookmarks Aug 07 05:01:21 Anivrom|devMode: Hey Aug 07 05:01:23 Anivrom|devMode: Buddy Aug 07 05:01:27 Anivrom|devMode: Finish that app! Aug 07 05:28:19 Anyoen know if there is a particular style class that gets applied to list items when they are reordered via palms default reordering method? Aug 07 05:29:49 .palm-row.first {} technically this should work right? Aug 07 05:29:56 If you are god Aug 07 05:30:01 doesn't seem to at the moment Aug 07 05:30:33 i would have thought it would work Aug 07 05:30:42 Tibfib: know anything about those 2 problems? Aug 07 05:30:51 Anyoen know if there is a particular style class that gets applied to list items when they are reordered via palms default reordering method? being the first Aug 07 05:31:08 gay Aug 07 05:31:32 isn't there a first-child selector in CSS? Aug 07 05:31:52 I dont think that would apply to my problem though Aug 07 05:32:07 if my list only has 1 item, it doesn't apply my background style Aug 07 05:32:28 oh Aug 07 05:32:58 which I'm assuming is a problemw ith row.last or row.first Aug 07 05:33:01 which I have both styled Aug 07 05:33:09 so What Gives! Aug 07 05:33:14 dekan: inventory Aug 07 05:33:14 I am carrying a towel, a big stick, a tactical low yield nuclear weapon, a star trek stun phaser, a condom, a knife, a flower, a bigger knife, a pair of Maui Jim Sunglasses, a steamy pile of poop, 1.4.5 sprint doctor, The Sugardavian Guide to 'Stupid Mojo Tricks', maik, dekan, a shiney new HP Palm C40, and a bullet proof vest. Aug 07 05:42:16 well that's handy, listreorder event gives you from and to indexes Aug 07 05:42:22 tiem to plug those into splice Aug 07 05:43:51 oil_pre: know anything about palm-row.first/last? Aug 07 05:44:04 My list doesn't show background styles when tehre's only 1 item in the list Aug 07 05:44:06 like what? Aug 07 05:48:37 i think i hate lists Aug 07 05:48:48 or drawers, haven't decided yet Aug 07 05:50:27 how about both? Aug 07 05:50:33 lets not be exclusive here Aug 07 05:50:34 lets not be sexclusive here Aug 07 05:50:42 heh Aug 07 05:50:50 hmm that's a good point Aug 07 05:52:20 is there a way to get all widgets of a type? Aug 07 05:53:17 erm what do you mean? Aug 07 05:53:24 through get commands? Aug 07 05:53:54 i'm still at my problem of opening drawers inside list items Aug 07 05:54:13 Hum Aug 07 05:54:19 so i'm thinking get an array of all Drawers in the scene and use event.index to open the right one Aug 07 05:54:21 How are you doing it now? Aug 07 05:55:09 why dont you setup a formatter that opens a drawer up when your list item is tapped on Aug 07 05:55:09 idk Aug 07 05:55:34 my list item has a button and a Drawer. right now i'm using the listTap event and trying to do document.getElementsByName('drawerName')[event.index].toggleState Aug 07 05:55:55 doubt thats gonna work Aug 07 05:56:30 the event fires just fine, but I can't reference the Drawer to open it Aug 07 05:56:31 why dont you setup a formatter for the list items Aug 07 05:56:36 I may check that out Aug 07 05:56:43 dekan: formatters Aug 07 05:56:43 formatters is http://webos101.com/List#List_formatters Aug 07 05:57:41 is there a particular reason why my method shouldn't work? Aug 07 05:57:49 I dont know your method Aug 07 05:57:54 You mean the code you posted>? Aug 07 05:58:02 what i was just saying with the getElementsByName Aug 07 05:58:06 yeah Aug 07 05:58:20 Oh, cause I don't think you can reference it by an index Aug 07 05:58:26 its not setup in an array like that Aug 07 05:58:32 what, getElementsByName? Aug 07 05:58:38 your list DOM Aug 07 05:59:06 but that function puts together an array of all page elements with that name attribute Aug 07 05:59:21 it's standard JS :/ Aug 07 05:59:32 hmm I see what you're saying Aug 07 05:59:40 Just dont know if you can get that complex Aug 07 06:00:03 document.getElementsByName might not be the right method for ref'ing your drawers Aug 07 06:00:05 my problem is that it's giving me a HTMLDivElement instead of a Drawer object, so I can't call the Drawer functions Aug 07 06:00:42 * Anivrom|devMode is waiting for the superdevs to chime in Aug 07 06:01:17 I actually don't know much about js, just started 3 weeks ago Aug 07 06:01:56 ah ok np :) Aug 07 06:02:03 i know JS, but not Mojo Aug 07 06:02:08 :P Aug 07 06:02:37 yay. Got inventory reordering working Aug 07 06:03:14 cool Aug 07 06:30:59 damn Plaid left a few minutes too early Aug 07 06:31:17 he needed .mojo.toggleState() Aug 07 06:31:24 awww Aug 07 06:31:32 at least. it might still not work, because Drawers suck Aug 07 06:31:37 haha Aug 07 06:31:39 ... Aug 07 06:31:56 well, when you're trying to get fancy with them, they are pretty unwieldy Aug 07 06:32:49 Anivrom|devMode: fyi, what he was describing, in general, works awesomely Aug 07 06:38:24 oh I see Aug 07 06:41:42 sugardave: apparently flick events dont give direction automatically like I thought. just an x and y based on velocity Aug 07 06:42:24 You can do a cartesian style if statement though to determine basic quandrants pretty quickly though Aug 07 06:42:32 And some simple trig would get you the direction Aug 07 06:43:11 I used to be good at math Aug 07 06:43:32 I failed grade 11 math 3 times cause I would skip to go to the library and read scientific american ... Aug 07 06:44:02 oops Aug 07 06:44:11 yea a bit Aug 07 06:44:22 still graduated with over 80% average though Aug 07 06:44:36 Due to my 95%+ in computer related subjects Aug 07 06:45:50 except for computer engineering, boolean algebra was a nightmare Aug 07 06:47:17 Anyone here used webkit for moving left, right , top etc? Aug 07 08:52:04 game.rndInvList[event.item.type + "s"][event.index].shopCount O_o It seems only 1/10 times I try and use this javascript trick, does it actually work Aug 07 08:55:16 anyone still up? Aug 07 09:01:36 hey haeffb Aug 07 09:03:01 im up Aug 07 09:03:06 word Aug 07 09:03:15 building a non-crapplet Aug 07 09:03:19 hah Aug 07 09:03:20 nicenice Aug 07 09:03:29 Did you say you are new to js? Aug 07 09:03:34 no Aug 07 09:03:42 oh, maybe you can answer this question Aug 07 09:03:45 need help with something Aug 07 09:03:50 shoot Aug 07 09:04:07 currentSelectedItemCount !== game.rndInvList[event.item.type][event.index].shopCount returns an error Cannot read property 'snack' of object Aug 07 09:04:30 game.rndInvListsnack = []; Aug 07 09:04:35 I know its a variable Aug 07 09:05:13 im not that good at javascript Aug 07 09:05:16 I successfully use this "label" method in 2 other places in my code Aug 07 09:05:21 is the !== correct Aug 07 09:05:27 ofc Aug 07 09:05:28 2 equals signs? Aug 07 09:05:59 the issue is with 'snack' which is what is in event.item.type Aug 07 09:06:20 if you successfully use this...then ...im guessing the answer is capitalization...or proper format Aug 07 09:06:21 it doesn't correctly point to game.rndInvListsnack Aug 07 09:06:31 not capitalization Aug 07 09:06:43 when this happens to me...its a "spelling" error or typo Aug 07 09:06:59 otherwise im lost looking at your code Aug 07 09:07:12 if (name === game.inventoryItems[type + "s"][i].displayName) { Aug 07 09:07:12 return i; Aug 07 09:07:12 } Aug 07 09:07:13 Runs fine Aug 07 09:07:21 exact same syntax Aug 07 09:08:00 except in one use !== and the other === Aug 07 09:08:02 does tha tmatter Aug 07 09:08:06 nah Aug 07 09:08:19 !== just means does not equal Aug 07 09:08:30 can u hard hard 'snack' Aug 07 09:08:37 and see if that works Aug 07 09:08:43 or another variable Aug 07 09:08:44 I can but it'll be 4 if statements Aug 07 09:09:05 I'm trying to avoid the 4 if statements by doing it dynamically Aug 07 09:09:21 i follow...it looks right then Aug 07 09:09:31 and i understand it now Aug 07 09:10:02 haeffb: 1111111111 Aug 07 09:10:05 how how baout right before it set the propert snack to somethign... Aug 07 09:10:10 and see if it can read it then Aug 07 09:10:47 if it says it can't read...make sure its populated right before the error Aug 07 09:10:49 you mean event.item.type? Aug 07 09:10:58 I know its populated cause I breakpoint there Aug 07 09:11:01 And look inside Aug 07 09:11:16 yeah...does thaat make sense? i may be in over my head code wise Aug 07 09:11:28 evertything should be workings Aug 07 09:11:47 and theres nothing like in .net Aug 07 09:11:51 public vs private Aug 07 09:12:16 ? Aug 07 09:12:21 I just checked the var and its definately snack Aug 07 09:12:29 if not then i can't help you... Aug 07 09:12:29 um no its either global or local in js Aug 07 09:12:43 And this var is definately global Aug 07 09:12:48 im out of ideas... Aug 07 09:12:48 so shouldnt be a problem Aug 07 09:13:01 what ur writing is more than ive done...i think Aug 07 09:15:18 gayness. oh well, looks like another quadruple if statement Aug 07 09:15:28 I feel like burning this code its so bloated and terrible :P Aug 07 09:15:58 well...ive been there before Aug 07 09:16:07 i sympathesize Aug 07 09:16:16 thats a new one Aug 07 09:23:00 heh Aug 07 09:23:10 Must be cause it's 5:23 Aug 07 09:23:11 am Aug 07 09:23:24 shopCount was the wrong property Aug 07 09:23:30 Supposed to be quantity I think Aug 07 09:23:37 Although I'm not entirely sure Aug 07 09:32:39 nvm. sleep for me I think Aug 07 09:32:41 goodnight Aug 07 09:32:42 night night, Anivrom|devMode Aug 07 12:12:26 I'm not 40 today.. I'm just 18 with 22 years of experience! ;) Aug 07 12:12:39 hbd to me. :) Aug 07 15:52:45 Spaz Hackathon starts in 10 minutes. if you want to lend a helping hand please visit #spaz Aug 07 15:53:20 wusaint: is there a link to what is going on today at the hackaton? Aug 07 15:53:39 Calling all Devs! Spaz Hackathon 5 is THIS Saturday @ http://www.webosroundup.com/2010/08/calling-all-devs-spaz-hackathon-5-saturday/ Aug 07 15:53:55 my article contains all the details Aug 07 15:55:11 ok thanks Aug 07 15:55:46 thank u Aug 07 16:53:41 hey sugardave: how do you, personally, delete items from a list? Aug 07 16:54:07 ever got the bug where you delete it from the model and the last item in the list duplicates itself Aug 07 16:54:15 its pissing me off Aug 07 16:54:27 assuming I know the index, listModel.items.splice(index, 1); this.controller.modelChanged(listModel); Aug 07 16:54:39 I tried that, no worky. SO GAY Aug 07 16:54:42 Anivrom|devMode: hmm, that doesn't sound right Aug 07 16:54:51 I blame auto-setup of widgets Aug 07 16:54:53 I spent a couple hours working on it Aug 07 16:54:56 last night Aug 07 16:55:00 til 6am Aug 07 16:55:13 erm. this morning Aug 07 16:59:08 you could try to reinstantiate the widgets....not sure what that will do to Ares: this.controller.instantiateChildWidgets(); Aug 07 16:59:28 would invalidateItems do anything for me? Aug 07 16:59:31 maybe delete the list contents from the DOM by hand, then re-do modelchange Aug 07 16:59:42 I've never heard of that one Aug 07 16:59:52 Causes the given items to be reloaded (if currently loaded). If limit is unspecified, causes all items after 'offset' to be invalidated. Aug 07 17:00:02 idk O_o Aug 07 17:00:22 sounds like you pass it an index and it and all after it become invalids Aug 07 17:00:33 whats an invalid? Aug 07 17:00:42 a handicapped person Aug 07 17:00:59 I'll keep googling it Aug 07 17:03:38 weird, an api that actually works... Aug 07 17:04:27 noticeRemovedItems(index, numOfElements); deletes the list item and updates the list Aug 07 17:05:09 basically ares version of model.items.splice Aug 07 17:05:15 calls modelChanged for you Aug 07 17:05:37 awesome Aug 07 17:05:48 splice isn't mojo, btw Aug 07 17:05:51 standard js Aug 07 17:05:52 I know Aug 07 17:05:54 :) Aug 07 17:06:05 why it doesn't mork? Only Ares knows. Aug 07 17:06:17 why what doesn't work? Aug 07 17:06:37 array.splice(index, 1), update the list model Aug 07 17:06:47 oh I see Aug 07 17:06:50 right Aug 07 17:08:45 haha, what part of MUST have an array do I not understand. was wondering why noticeUpdatedItems didnt work Aug 07 17:08:50 uh der. Aug 07 17:09:17 MUST be an array* Aug 07 17:09:49 sugardave Stop getting me to talk in irc, im becoming unproductive! Aug 07 17:10:09 * sugardave accepts no responisibility for your slackitude. Aug 07 17:10:28 or proper spelling Aug 07 17:10:34 who needs it Aug 07 17:10:43 only for my RealJob Aug 07 17:17:46 yay Aug 07 17:17:49 accomplishment Aug 07 17:18:14 now I can scrap that whole, load the whole list, update the pertinent information, push whole list again. Aug 07 17:25:47 sugardave: worked with this list attribute before? initialAverageRowHeight Aug 07 17:26:07 :D Aug 07 17:26:16 I looked at it, but didn't use it....I use max-height in CSS for .palm-row Aug 07 17:26:50 so do I but my list items styles go fubar when you are in reorder mode Aug 07 17:26:58 like when you're in the process of reordering. Aug 07 17:27:08 * sugardave looks at Mojo Matters lazy list example. "My brain hurts." Aug 07 17:27:21 stupid drawers Aug 07 17:27:23 hate those things Aug 07 17:27:26 sometimes it will cut off the info in the div to the default list height Aug 07 17:27:49 or sometimes it will get rid of all my divs and display half a background on top and the otehr half on the bottom Aug 07 17:28:13 Anivrom|devMode: not sure, but I think initialAverageRowHeight is something that only gets looked at when the list is created...it's a performance attribute, I think Aug 07 17:28:35 to try and make render faster Aug 07 17:28:40 Right, but it might have something to do with the fubar stuff since I also use max-height Aug 07 17:28:45 kind of like the "render every other row" thing Aug 07 17:28:49 Do you enable reordering? Aug 07 17:29:12 have you had that feature in any app? Aug 07 17:29:13 I've only done it once in a gamefly test app...my items are all fixed height in that one, though Aug 07 17:29:21 hmm Aug 07 17:30:07 did you know you can drag list items between lists? Aug 07 17:30:24 cool Aug 07 17:35:02 sugardave: Sorry to pester you so early int he morning but I couldnt figure this one out last night either, it SHOULD work but it doesn't... if (currentSelectedItemCount !== game.rndInvList[event.item.type][event.index].shopCount) { Aug 07 17:35:33 type is snack and teh var is setup as rndInvListsnack Aug 07 17:37:24 game['rndInvList' + event.item.type][event.index].shopCount Aug 07 17:37:31 gah Aug 07 17:37:50 so the whole var has to be in [] and converted to string Aug 07 17:37:56 yes Aug 07 17:37:58 gotcha Aug 07 17:38:00 thanks! Aug 07 17:38:02 np Aug 07 17:39:18 heh, coincidence: "Items added by dragging from other lists have 'item' and 'index' specified in the event." Aug 07 17:39:45 whats the coincindence? Aug 07 17:40:03 you just asked me if I knew you could drag from one list to another Aug 07 17:40:04 -n Aug 07 17:40:16 yea Aug 07 17:40:32 and then I saw this comment in recursive list example Aug 07 17:40:38 oh hah Aug 07 17:40:52 didnt know a palm app had that functionality Aug 07 17:41:07 Mojo Matters, recursive lists example Aug 07 17:41:36 * sugardave idly wonders where the Ares Matters example is. Aug 07 17:42:27 They are too busy working on Ares Doesnt Matter atm Aug 07 17:42:32 heh Aug 07 17:48:48 list of items which fall into two categories...I want one list, but "sectioned" into the two categories. what's the best UI way to do it? Aug 07 17:49:15 Can't you add a "dead" list item as the separator? Aug 07 17:49:24 with a different bg maybe? Aug 07 17:49:34 hmm Aug 07 17:49:42 preventDeleteProperty Aug 07 17:49:49 maybe I'll try the stupid collapsible dividers again Aug 07 17:51:18 You know about this attribute? dividerFunction Aug 07 17:51:31 dont know how it looks but apparently creates divider elements Aug 07 17:52:22 yeah, I'm wondering about it Aug 07 17:52:45 I think I may have to re-architect the data store Aug 07 17:52:58 its format is not lending itself to my list desires Aug 07 17:53:12 riiiight Aug 07 17:53:14 * Anivrom|devMode gets it Aug 07 17:55:10 this list item model keeps getting bigger and bigger.. Aug 07 17:55:24 currently I have 23 properties Aug 07 17:56:04 * sugardave bets some of those can be generated from formatters. Aug 07 17:59:26 oh sugardave, can I use a var in the this.controller.get([myVar])? Aug 07 17:59:40 can't seem to get it to work Aug 07 17:59:54 var myVar = 'someElementId'; this.controller.get(myVar); Aug 07 18:00:16 hmm I see. Aug 07 18:03:26 damn, I guess I will need to embed the section name in the item properties Aug 07 18:03:29 that kind of blows Aug 07 18:04:49 why does that blow? Aug 07 18:05:32 unnecessary duplication of data Aug 07 18:05:40 meh its necessary for you Aug 07 18:06:47 maybe I need to do two lists Aug 07 18:06:52 If that gets you irritated, dont ever open my code up LOL, you'd throw up on your pre Aug 07 18:06:58 computer/pre Aug 07 18:07:03 heh Aug 07 18:07:29 I find that hard to believe...you never want to make new vars/arrays/objects/etc Aug 07 18:08:34 in my world, everything is necessary Aug 07 18:08:36 EVERYTHING Aug 07 18:09:56 meh, I'll duplicate it...dammit Aug 07 18:10:31 I prefer simple over smart most times, not really into hardcore optimization Aug 07 18:10:50 I think the technical term for it is laziness Aug 07 18:14:27 I prefer "works" over anything else Aug 07 18:14:47 the scariest liability is a program that doesn't work Aug 07 18:14:49 I try to code smart, but sometimes its just not worth the effort imo Aug 07 18:17:52 bah, this is what happens when you design your JSON datastore at 3 am Aug 07 18:17:56 * Anivrom|devMode fires up game after massive changes and crosses fingers Aug 07 18:18:50 * Anivrom|devMode first up game again after 'minor' changes and crosses fingers :P Aug 07 18:19:53 heh Aug 07 18:21:29 * Anivrom|devMode first up game again again after 'minor' changes and crosses fingers :P Aug 07 18:21:41 fires*? Aug 07 18:21:49 hah Aug 07 18:22:05 tibfib: wanna make a minigame for my game? Aug 07 18:22:06 :P Aug 07 18:22:12 something short and sweet Aug 07 18:22:50 Anivrom|devMode: ummm, maybe? Aug 07 18:23:07 I still don't have any idea what your game is Aug 07 18:23:10 thats ok Aug 07 18:23:23 You could just take my countdown game Aug 07 18:23:41 hmm? Aug 07 18:24:00 tibfib.com/Download-Countdown Aug 07 18:24:01 maybe Aug 07 18:25:33 I just had an awesome idea. Aug 07 18:26:32 how can I change the value of my checkbox in my app? Aug 07 18:26:34 I could negotiate with ppl that have published full featured games, and have them write a bit of hooking code that would allow ppl to play those games and have it count for points in my game Aug 07 18:26:55 I'll write the "Click these Ads" mini-game for you Aug 07 18:26:57 would be good advertising for them too Aug 07 18:27:14 Anivrom|devMode: i think kesne is trying to do the same thing you are Aug 07 18:27:18 oh snap Aug 07 18:27:29 i'll be the first to do it though Aug 07 18:27:42 kesne's washed up, past his prime, old school if you will Aug 07 18:27:47 we are the future! Aug 07 18:28:09 diov: theWidgetModel.value = whateverValue; this.controller.modelChanged(theWidgetModel); Aug 07 18:28:23 I already gave him that code sugardave Aug 07 18:28:37 Anivrom|devMode: you could link to mojo messenger for in game chat ;) Aug 07 18:28:42 oh snap Aug 07 18:28:55 I smell 2.0 coming on Aug 07 18:28:58 sugardave didnt seem to work. Would it matter that I'm using ares? Aug 07 18:29:03 oh god Aug 07 18:29:04 yes Aug 07 18:29:05 lol.... Aug 07 18:29:20 should work either way Aug 07 18:29:24 there's some kind of setWidgetModel method Aug 07 18:29:33 Make sure you are getting the right model in modelChanged diov Aug 07 18:29:38 diov: You'l have to get Ares support from Anivrom|devMode Aug 07 18:29:41 thats like saying "does it matter if I'm using a hammer and chisle?" Aug 07 18:29:41 :D Aug 07 18:30:09 halfhalo: if you aint got anything good to say dont say nothin at alls Aug 07 18:30:30 make me Aug 07 18:30:33 LOL Aug 07 18:30:34 LALALALALALALALALALALALA Aug 07 18:30:38 * Anivrom|devMode cowers Aug 07 18:30:52 lol Aug 07 18:31:20 I'm telling mom..*yells at top of lungs* MOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM, HALFHALO IS PICKING ON ME Aug 07 18:31:33 Anivrom|devMode Thanks, i'll try that Aug 07 18:31:37 :p Aug 07 18:31:48 sc2 time Aug 07 18:31:53 is it good? Aug 07 18:32:04 the 10 year wait worth it? Aug 07 18:32:10 yup Aug 07 18:32:17 nice, I watched some beta matches Aug 07 18:32:23 interesting Aug 07 18:32:49 its got alot of tweaks to make i easier Aug 07 18:34:22 * Anivrom|devMode adds 4 characters to the end of var name to end his debugging misery over the last 10 minutes Aug 07 18:34:38 woot, workness Aug 07 18:40:58 * sugardave will bre trying out embedded .each() momentarily. Aug 07 18:45:36 damn I love .each() Aug 07 18:45:59 is it really as simple as it looks? Aug 07 18:46:06 yes Aug 07 18:46:06 whats the catch... Aug 07 18:46:22 if you need this Aug 07 18:46:28 you have to it like so Aug 07 18:46:50 array.each(function(item, index){..}, this); Aug 07 18:46:59 otherwise Aug 07 18:47:06 array.each(function(item, index){..}); Aug 07 18:47:31 what is this for Aug 07 18:47:39 whats the dif Aug 07 18:47:55 for instance if I have an array of element names and I want to add classes to them Aug 07 18:48:25 arrayOfElement.each(function(item, index){ this.controller.get(item).addClassName('myClass')}); Aug 07 18:48:27 just say array.each then a function which adds classes based on increment Aug 07 18:48:28 won't work Aug 07 18:48:34 because I need this in the inner function Aug 07 18:48:39 it's like a bind Aug 07 18:48:42 hmm Aug 07 18:48:53 in the inner function, this refers to the function Aug 07 18:48:55 I'll google it if I feel adventurous enough Aug 07 18:49:02 I see Aug 07 18:49:05 it's awesome Aug 07 18:49:30 .sort() is pretty bad-ass, too, but I think it's bugged in this version of Prototype or from Palm changes Aug 07 18:49:43 really? wow Aug 07 18:50:01 dont know how you could bug up sort Aug 07 18:50:05 pretty straightforward stuff Aug 07 18:50:38 well, if you return 0 in your sort function it's supposed to "do nothing to the sort order"...however, I see that it randomly orders things Aug 07 18:50:55 interesting behaviour Aug 07 18:51:06 its a feature Aug 07 18:51:41 sweet Aug 07 18:51:55 Just finished up random shop items. Aug 07 18:52:10 Now to move on to different rarities Aug 07 18:52:34 are you going to have a Hoe of Destruction? Aug 07 18:53:09 a.k.a my ex? Aug 07 18:53:25 LOL Aug 07 18:54:20 * sugardave still considers the possibilities of distributed MUDding on smartphones. Aug 07 18:56:00 I updated the graphcis for the inventory/shop screens yesterday. looks pretty slick now. Aug 07 18:57:45 Anivrom|devMode: still don't know what your app is Aug 07 18:57:49 is it an RPG? just answer that Aug 07 18:57:56 unfortunately no Aug 07 18:58:14 * Tibfib wonders what a shop would be used for in a non-rpg game Aug 07 19:02:59 * Anivrom|devMode keeps tibfib wondering Aug 07 19:07:13 alright, ordering by division then name is working perfectly Aug 07 19:07:39 Tibfib: his game is "Ultimate Interior Designer" Aug 07 19:09:03 LOL, well it does have a cool interior design "bonus feature" Aug 07 19:09:36 I feel some awesome coming on Aug 07 19:09:54 now if I could only stop talking in irc it might be done sometime this year Aug 07 19:09:55 lol Aug 07 19:09:59 * Anivrom|devMode is away Aug 07 19:10:41 you can't stay away Aug 07 19:10:44 it's a curse Aug 07 19:11:59 Anivrom|devMode: see you soon Aug 07 19:12:05 heh Aug 07 19:12:14 no you wont Aug 07 19:12:17 ....darn it! Aug 07 19:12:20 * Anivrom|devMode is away for real Aug 07 19:12:28 NOT IF I SEE YOU FIRST! Aug 07 19:12:35 haha Aug 07 19:12:38 .....erm ffs Aug 07 19:12:53 * Anivrom|devMode is turning on second monitor which has been dedicated to irc client Aug 07 19:12:56 off* Aug 07 19:12:57 ? Aug 07 19:36:05 * Anivrom|devMode wonders why Date().getTime() returns 1281209479855 which doesn't appear to mean anything. Aug 07 19:39:16 Anivrom|devMode: not timestamp? Aug 07 19:39:22 Hum? Aug 07 19:39:38 I know now its just the time in milliseconds Aug 07 19:40:04 I wanna calculate the minutes difference between 2 date vars. think I got it though Aug 07 20:16:23 Anivrom|devMode: .getTime() means "get the current time" Aug 07 20:16:51 in JS it's milliseconds from epoch Aug 07 20:17:00 I understand this... Aug 07 20:17:03 so divide by 1000 to get epoch-adjusted time Aug 07 20:17:05 I figured it out already :P Aug 07 20:17:15 okay, just making sure Aug 07 20:17:16 a lonnnnnnnnnnnnnnng time ago Aug 07 20:17:26 like 10 years ago atleast Aug 07 20:17:45 14:36 * Anivrom|devMode wonders why Date().getTime() returns 1281209479855 which doesn't appear to mean anything. Aug 07 20:17:59 I know now its just the time in milliseconds Aug 07 20:17:59 I wanna calculate the minutes difference between 2 date vars. think I got it though Aug 07 20:18:10 I know, but I was just saying what it means :P Aug 07 20:18:14 I see Aug 07 20:18:15 woo, bowling time Aug 07 20:18:19 ......... Aug 07 20:18:24 wi-bowl more like it Aug 07 20:18:27 wii? Aug 07 20:18:29 don't have a wii Aug 07 20:18:39 real bowling r teh boring Aug 07 20:18:40 we're really going to a real bowling alley Aug 07 20:33:55 bowling is fun! Aug 07 21:19:08 is ther a call recorder for webos? Aug 07 21:48:02 omg… forogt my p|c login Aug 07 23:20:24 hello friends! Aug 07 23:23:37 hello good sir/s Aug 07 23:25:24 quiet today. then again so is every saturday over at #webos. Aug 07 23:25:50 who knew webos dev had lives? Aug 07 23:25:57 yea really Aug 07 23:36:22 I love it when your app randomly breaks and the error is so vague it could be talking about the queen of england Aug 07 23:36:35 ol Aug 07 23:36:38 lol Aug 07 23:37:08 first it was this Aug 07 23:37:09 Error: Cannot read property '_mojoController' of object, Aug 07 23:37:40 I deleted a div from the item html template and now its this...Object # has no method 'setWidgetMdel', Aug 07 23:38:02 but I see the error in that one Aug 07 23:39:31 back to the first error now Aug 07 23:39:33 great. Aug 07 23:39:39 what's your app anivrom? Aug 07 23:39:57 its a game where you do stuff. pretty cool actually Aug 07 23:39:59 anyhow Aug 07 23:40:06 pissing me off. 20 minutes spent on this Aug 07 23:40:32 oh it's still in beta? not on app cat yet? Aug 07 23:40:40 no, still in alpha. Aug 07 23:40:49 couple more weeks and I should be in beta Aug 07 23:40:59 he won't tell ANYONE what the app is about Aug 07 23:41:01 with snags like this who knows though Aug 07 23:41:11 if you need a tester lemme know, david at dchoung.com Aug 07 23:41:23 hit me up in a couple weeks Aug 07 23:42:21 sure no prob Aug 07 23:43:13 Tibfib: i guess he's still hacking away on it in his underground laboratory. Aug 07 23:43:34 palm needs a simple api stageController.getMetaTap() Aug 07 23:43:39 he's doing something, thats for sure Aug 07 23:45:29 they need to release more api's Aug 07 23:47:02 FFS Aug 07 23:47:20 how the heck did an L get on the end of my list widget name Aug 07 23:47:32 sneaky bastards those L's Aug 07 23:47:43 pro-tip: wasting 30 minutes is as easy as adding a character to the end of a widget Aug 07 23:47:53 try it yourself! Aug 07 23:47:57 ha Aug 07 23:48:08 * Anivrom|devMode // wrists Aug 07 23:48:41 * Anivrom|devMode undoes alll the code he deleted/commented out while trying to fix this bug Aug 07 23:51:07 lol Aug 07 23:51:39 :( Aug 07 23:55:03 Tibfib Aug 07 23:56:20 Anivrom|devMode. Aug 07 23:56:30 Did you read what the problem was? Aug 07 23:56:43 I mean what ended up being the problem? Aug 07 23:56:49 yeah, I thought it was a user error? Aug 07 23:57:03 indeed Aug 07 23:57:15 Did you really wanna integrate MM? Aug 07 23:57:23 I might have a spare icon Aug 07 23:57:34 maybe... I'd have to see your game. Aug 08 00:00:45 it really depends, but I'll probably make a way for devs to hook into my service Aug 08 00:02:17 greetings gentlepeople Aug 08 00:05:23 breaking news, dated today, from twitter-land: http://ipod-music.org/3699/webos-update-for-palm-pre-owners.html?utm_source=twitterfeed&utm_medium=twitter&utm_campaign=Feed:+IPoD-Music+(IPoD-Music)&utm_content=Twitter Aug 08 00:05:54 lol... Aug 08 00:05:59 lol Aug 08 00:06:06 ahead of the curve I see Aug 08 00:07:41 w00t Aug 08 00:07:47 rare items: done Aug 08 00:14:50 * Tibfib still can't figure it out Aug 08 00:20:28 this code is so horrible, but w/e it works Aug 08 00:20:33 (most of the time) Aug 08 00:22:52 anybody tried to use collapsible dividers in a divider template for a list? Aug 08 00:24:06 sugardave: thats so easy, I'm not even gonna bother explaining it Aug 08 00:24:12 (in ares) Aug 08 00:24:27 lol Aug 08 00:24:32 I have wrestled with the unwieldiness of collapsible dividers before Aug 08 00:24:41 but just as staic elements in a scene Aug 08 00:24:46 static, too Aug 08 00:25:07 sugardave: it's dumb. that's all I know Aug 08 00:25:19 I was gonna go with a collapsible during my designing of the shop/inventory but decided it was too homosexual for my taste Aug 08 00:25:44 As you're finding out Aug 08 00:25:49 just want to verify that you still have to basically do everything manually, change the arrow and whatnot Aug 08 00:26:00 ah, yes, stupid drawers/dividers Aug 08 00:26:14 sugardave: yessir Aug 08 00:26:21 oh hi, btw Aug 08 00:26:40 okay, at least I already knew about that unlike the first time I tried to use them Aug 08 00:26:58 Plaid: I saw your general js question last night about 3 minutes after you left Aug 08 00:27:10 Plaid: the answer is "absolutely" Aug 08 00:27:37 oh sure make me remember what i was thinking about last night ;) Aug 08 00:27:38 meaning your code was sound Aug 08 00:27:42 ah Aug 08 00:28:04 so, the fact that I'm not getting a Drawer object is a bug? Aug 08 00:28:05 the only thing you were missing was majo.setWhateverItWas() Aug 08 00:28:11 mojo Aug 08 00:28:13 right Aug 08 00:28:31 get(widget).mojo.setWhatever Aug 08 00:28:38 ahhhh Aug 08 00:28:43 I will try that Aug 08 00:29:05 yep, the widgets have that mojo property where the methods live Aug 08 00:29:11 so any widget method you see in the docs Aug 08 00:29:21 it means: widget.mojo.method() Aug 08 00:29:47 but some are also applied directly to the object? Aug 08 00:29:52 or am i misunderstanding Aug 08 00:29:57 like what? Aug 08 00:30:30 well, now that i think of it i'm not sure Aug 08 00:30:40 lol Aug 08 00:31:19 okay, i'll try the mojo attribute and see how that goes Aug 08 00:31:31 Plaid: remind me what you are trying to do? Aug 08 00:32:22 I have a list which has in its items a button and a drawer Aug 08 00:32:36 and when i click the button in the item i want to open/close a drawer Aug 08 00:33:13 ultimately i want to use a collapsible divider, but i felt like starting out this way Aug 08 00:33:34 I hate drawers, too :D Aug 08 00:33:37 haha Aug 08 00:33:45 drawers are finicky Aug 08 00:33:45 I just use lists now and hide them on my own Aug 08 00:34:13 Plaid: ok, so did you get the button listeners working already? Aug 08 00:34:40 * Anivrom|devMode randomly edits css attributes praying that it will magically achieve the look he is going for Aug 08 00:34:59 i'm receiving a listTap event right now Aug 08 00:35:30 oh, I see, so they're really tapping the list entry and the button is just for show Aug 08 00:35:39 yeah Aug 08 00:35:52 i just put a button as a placeholder, mainly Aug 08 00:35:52 you gotta push the button tap event though Aug 08 00:36:02 and then you want the drawer to expand when the list item is tapped Aug 08 00:36:02 to show the down image Aug 08 00:36:28 sugardave:exactly Aug 08 00:36:45 a detail view, basically Aug 08 00:37:49 Plaid: this is off the top of my head...but something like this in the listTap handler should work, I think: this.controller.get(event.currentTarget).getElementsByClassName(aDrawerClass)[0].toggleState() Aug 08 00:37:54 should work, technically Aug 08 00:38:04 assuming you have a class set on the drawer Aug 08 00:38:21 hmm Aug 08 00:38:25 event.currentTarget.id probably on that first get Aug 08 00:38:33 Plaid: this is off the top of my head...but something like this in the listTap handler should work, I think: this.controller.get(event.currentTarget).getElementsByClassName(aDrawerClass)[0].mojo.toggleState() Aug 08 00:38:34 i'm gonna try document.getElementsByName('descriptionDrawer').mojo.toggleState(); and see what happens Aug 08 00:38:39 see I forgot the mojo, too Aug 08 00:38:53 oops forgot the index Aug 08 00:39:06 Plaid: that works, too...I don't profess to be the most efficient :D Aug 08 00:39:44 heh i've tried enough ways that i'm pretty sure that's the least amount of code Aug 08 00:39:50 :D Aug 08 00:40:00 this.controller.get() doesn't seem to work for names :( Aug 08 00:40:07 it's only for id Aug 08 00:40:22 this.controller.select _might_ get names Aug 08 00:40:27 oh wait Aug 08 00:40:33 this.controller.get is supposed to work with names Aug 08 00:40:56 that's why you're supposed to use names in html templates Aug 08 00:40:57 and not id Aug 08 00:41:13 it seemed to be returning null :| Aug 08 00:41:18 but, it might return them as an array Aug 08 00:41:20 oh Aug 08 00:41:21 weird Aug 08 00:41:37 i may play with it Aug 08 00:41:52 Tibfib: I used .select the first time the other day, for getting all by class name Aug 08 00:41:57 interesting syntaxt Aug 08 00:42:07 this.controller.select('.class'); Aug 08 00:42:08 does it work? Aug 08 00:42:11 oh yeah Aug 08 00:42:16 .mojo worked perfectly :D Aug 08 00:42:17 interesting, I don't see it documented Aug 08 00:42:31 and you're surprised by this fact? Aug 08 00:42:34 $A(this.controller.select('.class')).each() is full of win Aug 08 00:42:46 what does $A do? Aug 08 00:42:53 i'd be suprised anything worked at this point :P Aug 08 00:42:59 I stole it from Dion's horizontal scroller github example Aug 08 00:43:07 that just solved three hours of trial-and-error yesterday Aug 08 00:43:18 $A is Prototype: make this enumerable/array Aug 08 00:43:34 it doesn't return an array? Aug 08 00:43:39 (select) Aug 08 00:43:39 it's a nodelist Aug 08 00:43:51 so, no .each(), .sort(), etc. Aug 08 00:43:57 oh, interesting Aug 08 00:44:05 sugardave: you need to put this on webos101 Aug 08 00:44:14 blah....okay Aug 08 00:44:22 but I don't know where Aug 08 00:45:17 Plaid: woohoo! Aug 08 00:45:25 sorry I didn't see you earlier last night :D Aug 08 00:45:35 np it works now :D Aug 08 00:46:16 oh, and "this.controller.get('descriptionDrawer')[event.index].mojo.toggleState();" gives me a TypeError: cannot read property '0' of null Aug 08 00:46:33 hmmm Aug 08 00:46:37 interesting Aug 08 00:46:44 I've been getting that error all day, can't remember why though Aug 08 00:47:04 because whatever is to the left of [event.index] is null Aug 08 00:47:11 IIRC i looked at get()'s code yesterday through the console log and it only checked the id Aug 08 00:47:30 Plaid: I must have dreamed this or I'm thinking of the wrong method Aug 08 00:47:35 lol Aug 08 00:47:41 well i've got to go: dinner :D Aug 08 01:02:26 Tibfib: you got it: http://webos101.com/Code_Snippets#Turn_a_NodeList_into_an_Array.2FEnumerable_Object Aug 08 01:02:47 hi haeffb Aug 08 01:03:09 sugardave: I'd just say, 'how to get a div by class" but that works :) Aug 08 01:03:10 thanks Aug 08 01:03:19 well, I thought about that Aug 08 01:03:32 but then we already have .getElementsByClassName() Aug 08 01:03:46 I need to look into select to see how all you use it Aug 08 01:04:09 I just assumed it was for classes...I wonder if you do select('#id') for ids Aug 08 01:05:55 haeffb: haven't you done collapsible dividers as part of a divider template for a list? Aug 08 01:13:08 isn't there a section on webos101 for custom widgets? Aug 08 01:16:22 lies Aug 08 01:16:24 oh ok Aug 08 01:16:25 :P Aug 08 01:16:32 Hi all! Aug 08 01:16:43 hi Aug 08 01:16:51 JenP: howdy Aug 08 01:16:59 hi guys! Aug 08 01:19:18 hi JenP Aug 08 01:19:29 hi sugardave! Aug 08 01:19:37 oil: you know why when my list only has 1 item it doesn't apply my .first style? Aug 08 01:19:40 or .last? Aug 08 01:19:56 it does .single, no? Aug 08 01:20:04 oh is that an option? Aug 08 01:20:09 yeah Aug 08 01:20:10 it should Aug 08 01:20:39 why doesn't it apply my palm-row automagically to every subclass Aug 08 01:21:04 because css is stupid Aug 08 01:21:11 ah I see Aug 08 01:21:19 thought there was a logical explanation for once Aug 08 01:23:48 awesome. Aug 08 01:23:57 been putting that one off for weeks Aug 08 01:35:11 hrm Aug 08 01:36:05 discombobulate: bonjour monsieur Aug 08 01:37:37 how's it goin'? Aug 08 01:37:52 its going. Aug 08 01:38:00 you? Aug 08 01:38:05 workin on any apps lately? Aug 08 01:38:13 about the same Aug 08 01:38:31 nope.. just tweaking some stuff.. you? Aug 08 01:38:35 yea Aug 08 01:38:41 canvas game Aug 08 01:38:47 oh yeah? Aug 08 01:46:09 I've been working on this shop/inventory so long I have forgotten how my main code works LOL Aug 08 01:47:42 Anivrom|devMode: add the konami code as a cheat Aug 08 01:48:21 I do have a bunch of dev commands that do certain things such as changing stats, invoking behaviours etc Aug 08 01:48:46 * Tibfib will browse code and hack game :) Aug 08 01:48:53 No doubt Aug 08 01:49:06 You could do that with anygame though Aug 08 01:49:16 but it's _your_ game Aug 08 01:49:20 HAH Aug 08 01:51:25 haeffb: you lied to me Aug 08 02:01:43 shocker Aug 08 02:01:53 where's dekan, dangit Aug 08 02:02:02 in the closet Aug 08 02:02:05 maik: ping Aug 08 02:02:36 I need to document haeffb's untrustworthiness Aug 08 02:02:57 lol Aug 08 02:03:02 whad je do Aug 08 02:03:54 Hello Aug 08 02:03:56 he told me that if I declare a var outside teh constructor of my scene, I can use var this.myVar = blah; and it will be local to that assistant Aug 08 02:04:01 hi hunny Aug 08 02:04:08 hi :) Aug 08 02:04:30 but jslint chirps at me when I use this. Aug 08 02:04:45 you don't do var this.anything Aug 08 02:04:52 just var anything Aug 08 02:05:00 Then it's global Aug 08 02:05:04 I don't want it to be Aug 08 02:05:18 cause then it persists after the scene is popped Aug 08 02:05:57 does anyone know how to know if your app goes into card mode? Aug 08 02:06:14 shawalli, deactivate function Aug 08 02:06:40 shawalli: listen to deactivate, it's somewhere in the documentation Aug 08 02:06:43 it doesnt get called when it goes to card mode. i put a mojo.log.info in there and it doesnt get logged Aug 08 02:06:52 does for mine O_o Aug 08 02:07:00 shawalli: wrong deactivate Aug 08 02:07:08 put a listener on the document itself Aug 08 02:07:11 _stage_ deactivate Aug 08 02:07:14 ooohhhh Aug 08 02:07:15 ok Aug 08 02:07:17 thanks Aug 08 02:07:29 shawalli: this.controller.listen(this.controller.stageController.document, Mojo.Event.stageDeactivate, game.stageDeactivate.bind(this), true); Aug 08 02:07:29 Aug 08 02:07:36 I use that successfully Aug 08 02:14:20 that worked, thanks Aug 08 02:14:50 and do the same for activate Aug 08 02:15:05 unless you want the user to resume Aug 08 02:34:54 Anivrom|devMode: you have to explicitly declare this.myVar to make it be part of the assistant...likely what haeffb meant was that any OTHER variables (i.e. var aDifferentVar) declared outside the constructor make them available througout the assistant Aug 08 02:35:18 but also make them available throughout the app Aug 08 02:35:25 yep Aug 08 02:38:42 Anivrom|devMode: if you want a scene-assistant-only var, just use this.myVars or declare var aDifferentVar inside the constructor Aug 08 02:39:10 oh i see. so anything declared in setup is available to more than just setup? Aug 08 02:39:13 for example? Aug 08 02:39:28 thought it would be loca Aug 08 02:39:30 l Aug 08 02:39:45 not necessarily...if it's a this. style "variable" then yes Aug 08 02:39:54 because "this" is the assistant Aug 08 02:41:07 if you do var newVariable in the constructor (not setup) it should be available anywhere since the object is created from that constructor Aug 08 02:42:05 ok Guess im misunderstanding whta the constructor is Aug 08 02:42:12 it's not the setup method Aug 08 02:42:17 function ShopAssistant(argFromPusher) {} Aug 08 02:42:23 ^? Aug 08 02:42:24 yes Aug 08 02:42:26 I see Aug 08 02:42:29 that is the constructor Aug 08 02:42:42 This whole time I thought it was something else Aug 08 02:46:15 * Anivrom|devMode fixed the mystery bug yay Aug 08 02:58:41 Is there a simple way to say get whether the gesture area is being held without listening to keyup/down events? **** ENDING LOGGING AT Sun Aug 08 02:59:56 2010