squeak414 | 1 Mar 19:03 2008
Picon

Detecting keyboard state / finding older fixes

(resend, as previously not subscribed and message blocked waiting
approval)

I'm using my qwerty/azerty keyboard for input to a game. The issue is that when
you press and hold a key, you receive repeats of the key press from the
operating system. I'd like to check the real position of a key, up or down, so I
can ignore the repeats. I can't find any way to do this.

There is a reference here
http://thread.gmane.org/gmane.comp.lang.smalltalk.squeak.general/4034 to a fix
to do this, but the links:
http://swiki.gsug.org:8080/sqfixes/2634.html
http://209.143.91.36/super/589
http://swiki.gsug.org/sqfixes/2629.html
Are all dead; they date from 2002.

Is there a way in the current version to do what I need, or is there a more
recent archive of fixes that I'm missing?

...Stan
Herbert König | 2 Mar 10:11 2008
Picon
Picon

Re: Detecting keyboard state / finding older fixes

Hello Stan,

sff> operating system. I'd like to check the real position of a key, up or down, so I
sff> can ignore the repeats. I can't find any way to do this.

Keyboard event understands #isKeyDown and #isKeyUp.

Cheers

Herbert                            mailto:herbertkoenig <at> gmx.net
Herbert König | 2 Mar 10:17 2008
Picon
Picon

Re: Detecting keyboard state / finding older fixes

Hello Stan,

I forgot:

sff>> operating system. I'd like to check the real position of a key, up or down, so I
sff>> can ignore the repeats. I can't find any way to do this.

HK> Keyboard event understands #isKeyDown and #isKeyUp.

and don't forget to check the event's timestamp. Never did this myself
but you can not rely on the fact that you will receive keyDown before
keyUp.

Cheers

Herbert                            mailto:herbertkoenig <at> gmx.net
Steve Palmer | 3 Mar 18:55 2008
Picon

Chess

I recently install Andreas Raab's Chess game in my Squeak image.
I would like to know how to start the game!!!!
_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Matthew Fulmer | 3 Mar 19:01 2008
Picon

Re: Chess

On Mon, Mar 03, 2008 at 12:55:04PM -0500, Steve Palmer wrote:
>    I recently install Andreas Raab's Chess game in my Squeak image.
>    I would like to know how to start the game!!!!

dunno if it's the same thing, but most squeak's have chess
pre-installed:

World > objects > games > chess

Drag it out to open it

--

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
Stephen Palmer | 3 Mar 21:48 2008
Picon

RE: Chess

Thanks Matt
 
That worked; that was too easy.
I thought I had to type some magic sequence of commands in the Squeak workspace!!
 
Steve





> Date: Mon, 3 Mar 2008 11:01:17 -0700
> From: tapplek <at> gmail.com
> To: beginners <at> lists.squeakfoundation.org
> Subject: Re: [Newbies] Chess
>
> On Mon, Mar 03, 2008 at 12:55:04PM -0500, Steve Palmer wrote:
> > I recently install Andreas Raab's Chess game in my Squeak image.
> > I would like to know how to start the game!!!!
>
> dunno if it's the same thing, but most squeak's have chess
> pre-installed:
>
> World > objects > games > chess
>
> Drag it out to open it
>
> --
> Matthew Fulmer -- http://mtfulmer.wordpress.com/
> Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
> _______________________________________________
> Beginners mailing list
> Beginners <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Marcus Strehlow | 3 Mar 21:51 2008
Picon

Parse an argument for a symbol that requires one

Hi guys,

if you have a SimpleButtonMorph, you can decide what it should do and  
it's pretty easy. You say

self target: aTarget
actionSelector:  #someAction.

And it works. But what if not only an action should be executed, what  
if the actionSelector gets a symbol that requires an argument? In my  
case I need to change a variable first before further proceeding you  
see. So I am wondering if it is possible to do something like this:

self target: aTarget
actionSelector: #someAction: argumentRequired

I have tried many ways, including constructing the action first in  
temporary variables and then just using that temp variable as  
actionSelector string. All my efforts have been in vain. There is a  
way to solve this for me, but it would be very tedious to do and would  
increase the code volume... and that's not what I want.

If you have any ideas on this, let me know.

Thanks,
Marcus
Randal L. Schwartz | 3 Mar 21:59 2008

Re: Chess

>>>>> "Stephen" == Stephen Palmer <wcsp <at> hotmail.com> writes:

Stephen> Thanks Matt
Stephen> That worked; that was too easy.
Stephen> I thought I had to type some magic sequence of commands in the Squeak workspace!!

*Type*?

:-)

--

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
albegadeep | 4 Mar 01:16 2008
Picon

Headless Squeak on Redhat - HELP!

I have a small (P3) server running Redhat, and I'm
trying to get Squeak running on it. Since there's no
monitor, and the graphics subsystem isn't started in
the usual runlevel, I need to run Squeak headless.

I put image and change file into a directory (read,
write, owned by user A) that should copy a couple of
files when run, using Smalltalk addToStartUpList:
MyClass. I load it up in Windows, and it works fine.

I load it in Linux:
[root <at> myserver A]# squeak -headless

The cursor goes to the next line, and nothing happens.

Any idea what's going wrong? How do I correct it? I
will happily furnish any other info or troubleshooting
that is needed.

THANK YOU!
Albegadeep

      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
Rezza | 3 Mar 17:18 2008
Picon

Re: Squeak for the Asus eee


It's segfaulting because of missing /proc/self/exe -> binfmt module. EEE has
stripped kernel :(

readlink("/proc/self/exe",  <unfinished ...>
+++ killed by SIGSEGV +++
Process 22651 detached

R.

Michael van der Gulik-2 wrote:
> 
> On Dec 30, 2007 4:26 PM, <mike.vidal <at> gmail.com> wrote:
> 
>> Does anyone know where there is a version of Squeak that will install
>> on the Asus eee?  I tried the debian and generic linux version and
>> they dont install/work.  The debian version wong apt-install.  It
>> complains about missing binfmt-support dependency.  The linux version
>> segfaults.
> 
> 
> The standard Linux version shouldn't segfault. AFAIK, the Asus EEE (which
> I'd like to have one of if anybody feels like donating them :-) ) is a
> standard i386 running modified Xandros Linux.
> 
> Could you provide more information about how it crashes?
> 
> Gulik.
> 
> -- 
> http://people.squeakfoundation.org/person/mikevdg
> http://gulik.pbwiki.com/
> 
> _______________________________________________
> Beginners mailing list
> Beginners <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Squeak-for-the-Asus-eee-tp14544063p15807347.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

Gmane