Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-29 Thread Lorn Potter
sorry took so long. forgot to hit send... On 24/08/2013, at 1:04 AM, Stefan Schmidt wrote: > Hello. > > On 08/22/2013 10:43 PM, Lorn Potter wrote: >> Hi, >> I was told of this thread, perhaps I can make a few comments (sorry if it >> doesn't really follow the thread) >> [no knowing much about

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-23 Thread Stefan Schmidt
Hello. On 08/22/2013 10:43 PM, Lorn Potter wrote: Hi, I was told of this thread, perhaps I can make a few comments (sorry if it doesn't really follow the thread) [no knowing much about wayland protocol/api] first thoughts: * why no timestamp info? Arg, that is sitting uncommitted here and th

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-23 Thread Stefan Schmidt
Hello. On 08/22/2013 09:20 PM, Bill Spitzak wrote: Jason Ekstrand wrote: One thing I'm still missing is a way to handle more than one sensor per type for the future. Input devices like the wii-remote with nunchuk comes to mind. Having two separate accelerometers which still w

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-23 Thread Stefan Schmidt
Hello. On 08/22/2013 04:07 PM, Jason Ekstrand wrote: Stefan, Thanks for working on this! You can thank me once I get this into a state where it gets accepted. ;) As one general comment (protocol comments below), we need to make sure that "normal" values are somewhere around 1 to 1000. The w

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-23 Thread Stefan Schmidt
Hello. On 08/22/2013 11:45 PM, Bryce W. Harrington wrote: On Thu, Aug 22, 2013 at 09:46:28AM +0100, Stefan Schmidt wrote: Treating some specific sensors as input devices. In particular adding support for wl_compass, wl_gyroscope and wl_accelerometer here. Using these sensor as input for apps a

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Bryce W. Harrington
On Thu, Aug 22, 2013 at 09:46:28AM +0100, Stefan Schmidt wrote: > Treating some specific sensors as input devices. In particular > adding support for wl_compass, wl_gyroscope and wl_accelerometer here. > > Using these sensor as input for apps and games. Not covering any > background apps or servic

[RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Lorn Potter
Hi, I was told of this thread, perhaps I can make a few comments (sorry if it doesn't really follow the thread) [no knowing much about wayland protocol/api] first thoughts: * why no timestamp info? * why no rate info? (not all apps need/want the same speed) * a magnetometer is not a compass, nor

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Bill Spitzak
Jason Ekstrand wrote: One thing I'm still missing is a way to handle more than one sensor per type for the future. Input devices like the wii-remote with nunchuk comes to mind. Having two separate accelerometers which still would be a the same seat but could not be aggregated.

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Jason Ekstrand
Stefan, Thanks for working on this! As one general comment (protocol comments below), we need to make sure that "normal" values are somewhere around 1 to 1000. The wl_fixed type provides 24 bits of integer and 8 bits of fractional precision. The units used below seemed reasonable to me. That sa

Re: [RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Stefan Schmidt
Hello. On 08/22/2013 09:46 AM, Stefan Schmidt wrote: Treating some specific sensors as input devices. In particular adding support for wl_compass, wl_gyroscope and wl_accelerometer here. Using these sensor as input for apps and games. Not covering any background apps or services with this proto

[RFC PATCH v2] protocol: Extend wayland seat with interfaces for sensor inputs.

2013-08-22 Thread Stefan Schmidt
Treating some specific sensors as input devices. In particular adding support for wl_compass, wl_gyroscope and wl_accelerometer here. Using these sensor as input for apps and games. Not covering any background apps or services with this protocol. We have requests to start and stop sensor event re