[Pharo-project] [COTDC] 29 - EventSensorConstants
Today: EventSensorConstants Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest Laurent
This is a constants, used by EventSensor to identify various event types and theirs contents. NOTE: A constant values should be kept in sync with VM-side, which are defined in sq.h header file. On 10 March 2011 22:00, laurent laffont <laurent.laffont@gmail.com> wrote:
Today: Â EventSensorConstants
Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results:Â http://code.google.com/p/pharo/wiki/CommentOfTheDayContest Laurent
-- Best regards, Igor Stasenko AKA sig.
On Mar 10, 2011, at 10:48 52PM, Igor Stasenko wrote:
This is a constants, used by EventSensor to identify various event types and theirs contents. NOTE: A constant values should be kept in sync with VM-side, which are defined in sq.h header file.
IE I am more "InputEventConstants" than "EventSensorConstants" really. (All are related to the events passed from the vm themselves, not the sensor) Funnily enough, EventSensorConstants (MouseButtonBit 2r0010, correct preswap), MouseEvent (#blueButtonPressed mask: 2r0001, correct postswap, if swapped), and the InputEventSensor (#blueButtonPressed mask: 2r0111, ie, ANY of the buttons pressed) all disagree on what the blue button bit is actually supposed to be. :P Cheers, Henry
On 11 March 2011 00:11, Henrik Johansen <henrik.s.johansen@veloxit.no> wrote:
On Mar 10, 2011, at 10:48 52PM, Igor Stasenko wrote:
This is a constants, used by EventSensor to identify various event types and theirs contents. NOTE: A constant values should be kept in sync with VM-side, which are defined in sq.h header file.
IE I am more "InputEventConstants" than "EventSensorConstants" really. (All are related to the events passed from the vm themselves, not the sensor)
Funnily enough, EventSensorConstants  (MouseButtonBit  2r0010, correct preswap), MouseEvent (#blueButtonPressed mask: 2r0001, correct postswap, if swapped), and the InputEventSensor (#blueButtonPressed mask: 2r0111, ie, ANY of the buttons pressed) all disagree on what the blue button bit is actually supposed to be. :P
yeah.. so, who is brave enough and have time to rewrite/improve event system? Ask Stephane. He has a plan for you :)
Cheers, Henry
-- Best regards, Igor Stasenko AKA sig.
:) Yes I have a plan for you :)
This is a constants, used by EventSensor to identify various event types and theirs contents. NOTE: A constant values should be kept in sync with VM-side, which are defined in sq.h header file.
IE I am more "InputEventConstants" than "EventSensorConstants" really. (All are related to the events passed from the vm themselves, not the sensor)
Funnily enough, EventSensorConstants (MouseButtonBit 2r0010, correct preswap), MouseEvent (#blueButtonPressed mask: 2r0001, correct postswap, if swapped), and the InputEventSensor (#blueButtonPressed mask: 2r0111, ie, ANY of the buttons pressed) all disagree on what the blue button bit is actually supposed to be. :P
yeah.. so, who is brave enough and have time to rewrite/improve event system? Ask Stephane. He has a plan for you :)
Cheers, Henry
-- Best regards, Igor Stasenko AKA sig.
participants (4)
-
Henrik Johansen -
Igor Stasenko -
laurent laffont -
Stéphane Ducasse