[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pygame & Official Raspberry Pi 7" touchscreen
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Pygame & Official Raspberry Pi 7" touchscreen
- From: David Lönnhager <dv.lnh.d@xxxxxxxxx>
- Date: Tue, 5 Feb 2019 15:29:46 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 05 Feb 2019 09:29:59 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=sIJIyEABimpWMr9LgtikFMivnn6z+0EklEVH1lgJmKY=; b=KJ91zNMkOy86HBIaA9A4BwMx0jGUuUvRjq4KrWuxBhgG7Ebgn6vgjrh1qf4GKlZu81 ojh/tPda7k3H2nUFelT8VHjc+J0Ps4TZXoA6mY0xf2BTrbi4IGFP1/uZjuaAOk31bRbV hFQDr5oN7MgSxq36p8aG+HC8B3w0kOL+nuD7dI93y6btaN3/9Ri64PJAimTbwB3M1GnV lWMavIP6kHk1mS4YPcczD0okPxSsHexIJP8lFYEwMlsJ/V8oaw2A99Wp8tF7k3KnrJ/t 7CBTGk8ygd+qHHRUviJXllJDjIJnAm2HFpGY554k/RWzruXPu/sTmkDXCz+4k2yE6wL/ Xedg==
- In-reply-to: <CAANJKek90oaYQ+WB-AU5K4SYXHBpH1N+fVmBkr5bZ5VGrJL64Q@mail.gmail.com>
- References: <CAANJKek3cCEU5NjQZnUsFh3BebSCBwNvGe2L0==oUic2w8iU6g@mail.gmail.com> <ZNf_YcXkhht2ax5eajzksd3CtqYiGXDEux_-zMm-NbIBbE3MhFLQ8uVomCU7OtNZkCtnF3Zv39wypBPjuCxS2w3Fon18iLLUAJFX0F0c_jo=@protonmail.ch> <CAANJKe=xzux9CFpxqeVP4bMXwp8XmkA0cRcn4htf0azaZ0Pbnw@mail.gmail.com> <aHnnE48_4E9aarS3S5leIHcLrzlvHL_M5UIrMMGH1Qqk7gfWgWwfYva5b05wN2giUE2hRilF1V7h1z0W7NnHIK5bbhOcnQJCI2YZZNod6ZY=@protonmail.ch> <CAFiEPQvM75o3R=VRKBtv5Mf=30pO4rn3VKgnc0NfXUYqtiXdsw@mail.gmail.com> <CAANJKek90oaYQ+WB-AU5K4SYXHBpH1N+fVmBkr5bZ5VGrJL64Q@mail.gmail.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I don't think there is one yet
On Sun, Feb 3, 2019 at 6:04 PM Go Peppy <peppy.player@xxxxxxxxx> wrote:
>
> Is there any planned release date for that version? So that I could just install it as usual instead of building from source:
>
> sudo apt-get install python3-pygame
>
> Thank you!
>
> On Sun, Feb 3, 2019 at 8:00 AM David Lönnhager <dv.lnh.d@xxxxxxxxx> wrote:
>>
>> Touch events (FingerMotion, FingerDown, FingerUp, and MultiGesture)
>> have been added to pygame. Should work if you build it with SDL2.
>>
>>
>> On Sun, Feb 3, 2019 at 2:44 AM <mar77i@xxxxxxxxxxxxx> wrote:
>> >
>> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>> > On Sunday, February 3, 2019 1:44 AM, Go Peppy <peppy.player@xxxxxxxxx> wrote:
>> >
>> > > That "driver" handles events directly. See function _touch_device here:
>> > > https://github.com/pimoroni/python-multitouch/blob/master/library/ft5406.py
>> > >
>> > > Thank you!
>> > >
>> >
>> > Sorry I still don't get it. We know
>> >
>> > - it registers events correctly
>> > - it appears to integrate with pygame in not completely unreasonable fashion
>> >
>> > And that's it. Thing is that pygame is built on top of a C library called SDL. Pygame has therefore little to say on its own over what devices are supported on the system level, since it doesn't do much more than bind SDL's event handling interfaces to make them usable in python. So unless you want to write the necessary code in C into SDL first, there seems to be a way that is known to work and let's use that.
>> >
>> > There might be some prototype Pygame 2 based on SDL2 out there, maybe that one integrates the hardware support you're after? That would require Pygame to support this new event type [0] here. Pygame 2 has been on its way for a while, though, and mentions adding of new APIs on this milestone [1]...
>> >
>> > cheers!
>> > mar77i
>> >
>> > [0] https://wiki.libsdl.org/SDL_TouchFingerEvent#SDL_TouchFingerEvent-1
>> > [1] https://github.com/pygame/pygame/milestone/4
>> >
>> >
>> > Sent with ProtonMail Secure Email.
>> >