Re: Problem with pyglet windows mouse event on_mouse_press

2018-04-05 Thread Benjamin Moran
Hi Kabir, 

This file contains the fix:   pyglet/window/win32/__init__.py 

You need to update your pyglet install with the new file.  How did you 
install pyglet? If you installed pyglet from pip, then the easy thing to do 
is upgrade to the development version: 

pip install --upgrade https://bitbucket.org/pyglet/pyglet/get/tip.zip


You can also just copy the __init__ file from the Bitbucket repository, 
into your pyglet install location. 




On Friday, April 6, 2018 at 6:45:48 AM UTC+9, kabir kumar wrote:
>
> Hello. I am having the same problem and wanted to know the whole step by 
> step process of implementing this "__init__.py" file from the pull request. 
> Please I am working for a project and using pyglet and am on a deadline. 
> Kindly Reply as soon as possible.
>
> Thank you 
>
> On Wednesday, January 24, 2018 at 3:58:29 PM UTC+5, Doug World wrote:
>
>> This simple program, using the latest pyglet 1.3.0 does not trigger the 
>> event on_mouse_press.  However it does trigger on event on_mouse_release.  
>> What am I doing wrong?  Thanks.
>>
>> #Using pyglet 1.3.0 we never see the on_mouse_press event
>> import pyglet
>> window = pyglet.window.Window(width=400, height=300, caption="TEST pyglet 
>> on_mouse_press event")
>>
>>
>> @window.event
>> def on_mouse_press(x, y, button, modifiers):
>> print('on_mouse_press')
>>
>>
>> @window.event
>> def on_mouse_release(x, y, button, modifiers):
>> print('on_mouse_release')
>>
>>
>> @window.event
>> def on_draw():
>> window.clear()
>> #label.draw()
>>
>> pyglet.app.run()
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-04-05 Thread kabir kumar
Hello. I am having the same problem and wanted to know the whole step by 
step process of implementing this "__init__.py" file from the pull request. 
Please I am working for a project and using pyglet and am on a deadline. 
Kindly Reply as soon as possible.

Thank you 

On Wednesday, January 24, 2018 at 3:58:29 PM UTC+5, Doug World wrote:

> This simple program, using the latest pyglet 1.3.0 does not trigger the 
> event on_mouse_press.  However it does trigger on event on_mouse_release.  
> What am I doing wrong?  Thanks.
>
> #Using pyglet 1.3.0 we never see the on_mouse_press event
> import pyglet
> window = pyglet.window.Window(width=400, height=300, caption="TEST pyglet 
> on_mouse_press event")
>
>
> @window.event
> def on_mouse_press(x, y, button, modifiers):
> print('on_mouse_press')
>
>
> @window.event
> def on_mouse_release(x, y, button, modifiers):
> print('on_mouse_release')
>
>
> @window.event
> def on_draw():
> window.clear()
> #label.draw()
>
> pyglet.app.run()
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-16 Thread David Langhorne
I was having this problem as well - not seeing the on_mouse_press() events
WIndows 10, python 3.6.4, pyglet 1.3.1 and arcade 1.3.0

Applying the __init__.py from the pull request fixed the problem in my 
configuration.

Eagerly awaiting a 1.3.2 maintenance release!  

Thanks!

David Langhorne


On Thursday, March 8, 2018 at 2:41:00 AM UTC-5, Daniel Gillet wrote:
>
> Thanks everyone for reporting this annoying bug! I hope now it works for 
> both exclusive and non-exclusive mode on Windows.
>
> Cheers,
> Dan
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-07 Thread Daniel Gillet
Thanks everyone for reporting this annoying bug! I hope now it works for 
both exclusive and non-exclusive mode on Windows.

Cheers,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-07 Thread Benjamin Moran
Thanks for the confirmation! 

Doug and Polorky, it would be great to know your results as well.


On Thursday, March 8, 2018 at 1:01:42 AM UTC+9, Joshua C wrote:
>
> Yes, this did it! (To add more info, I am running python 3.6.4 and pyglet 
> 1.3.1, forgot to mention that earlier)
>
>  I implemented the fixed __init___.py in pyglet/window/win32 and ran the 
> above test script. My application is now correctly detecting on_mouse_press 
> and on_mouse_release events.
>
> Thank you! (I'm not sure how to post this on the pull request)
>
> On Tuesday, March 6, 2018 at 8:59:46 PM UTC-8, Benjamin Moran wrote:
>>
>> Hi Joshua, 
>>
>> Yes, Dan was able to have a look at this recently. He has a pull request 
>> currently open, which would be great if you could try: 
>>
>> https://bitbucket.org/pyglet/pyglet/pull-requests/112/fix-bug-introduced-in-pr-104-commit/diff
>> If you try it, let us know your results either here or by comenting on 
>> his pull request. 
>>
>> -Ben
>>
>>
>> On Tuesday, March 6, 2018 at 11:28:17 PM UTC+9, Joshua C wrote:
>>>
>>> Hi Benjamin,
>>>
>>> Recently got back into Pyglet after noticing some updates (been a few 
>>> years). 
>>>
>>> Had this same issue as described above using the example code: all 
>>> events are being detected except on_mouse_press, 
>>> for all three of the main mouse buttons, and the two side buttons aren't 
>>> detected for any input at all.
>>> I am running Windows 10 Home, have an AMD FX-6350 processor, and a 
>>> wireless mouse, Logitech M510, 
>>> using whatever generic drivers come with Windows. I unfortunately cannot 
>>> test this issue on other hardware. 
>>> I poked around in Pyglet's source but I can't see anything obviously 
>>> wrong, so I am at a loss.
>>>
>>> Has any headway been made on this issue? Let me know if there is 
>>> anything I can do to help.
>>>
>>> Thank you!
>>>
>>> On Monday, February 19, 2018 at 6:12:54 PM UTC-8, Benjamin Moran wrote:

 Hi Polorky, 

 I wonder if this is related to this issue:  
 https://bitbucket.org/pyglet/pyglet/issues/130/mouse-release-event-not-triggered
 We thought that was a Mac only issue related to that specific touchpad, 
 but it's possible the issue lies elsewhere. 

 Interestingly, some people are reporting missing on_press, while others 
 are missing on_release events! 
 It shouldn't matter, but could you have a try with the exact code 
 example from the issue tracker, and confirm your results there? 
 Also, please share the hardware and OS details for your laptop. 

 Thanks!

 On Tuesday, February 20, 2018 at 4:46:25 AM UTC+9, Polorky wrote:
>
> Hi, I'm having the same issue. I have run the following code which 
> prints out all detectable Pyglet events:
>  
>
> screen.push_handlers(pyglet.window.event.WindowEventLogger())
>
>
> And this was the result:
>
> on_mouse_motion(x=442, y=371, dx=0, dy=-1)
> on_draw()
> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
> on_draw()
> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
> on_draw()
> on_mouse_motion(x=445, y=374, dx=3, dy=3)
>
>
> I clicked the mouse twice but it only read the 'release' not the 
> 'press'.
>
> I'm using a Windows laptop and I've tried this with the mouse pad and 
> an external mouse, neither is working.
>
> Any ideas?
>


-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-07 Thread Joshua C
Yes, this did it! (To add more info, I am running python 3.6.4 and pyglet 
1.3.1, forgot to mention that earlier)

 I implemented the fixed __init___.py in pyglet/window/win32 and ran the 
above test script. My application is now correctly detecting on_mouse_press 
and on_mouse_release events.

Thank you! (I'm not sure how to post this on the pull request)

On Tuesday, March 6, 2018 at 8:59:46 PM UTC-8, Benjamin Moran wrote:
>
> Hi Joshua, 
>
> Yes, Dan was able to have a look at this recently. He has a pull request 
> currently open, which would be great if you could try: 
>
> https://bitbucket.org/pyglet/pyglet/pull-requests/112/fix-bug-introduced-in-pr-104-commit/diff
> If you try it, let us know your results either here or by comenting on his 
> pull request. 
>
> -Ben
>
>
> On Tuesday, March 6, 2018 at 11:28:17 PM UTC+9, Joshua C wrote:
>>
>> Hi Benjamin,
>>
>> Recently got back into Pyglet after noticing some updates (been a few 
>> years). 
>>
>> Had this same issue as described above using the example code: all events 
>> are being detected except on_mouse_press, 
>> for all three of the main mouse buttons, and the two side buttons aren't 
>> detected for any input at all.
>> I am running Windows 10 Home, have an AMD FX-6350 processor, and a 
>> wireless mouse, Logitech M510, 
>> using whatever generic drivers come with Windows. I unfortunately cannot 
>> test this issue on other hardware. 
>> I poked around in Pyglet's source but I can't see anything obviously 
>> wrong, so I am at a loss.
>>
>> Has any headway been made on this issue? Let me know if there is anything 
>> I can do to help.
>>
>> Thank you!
>>
>> On Monday, February 19, 2018 at 6:12:54 PM UTC-8, Benjamin Moran wrote:
>>>
>>> Hi Polorky, 
>>>
>>> I wonder if this is related to this issue:  
>>> https://bitbucket.org/pyglet/pyglet/issues/130/mouse-release-event-not-triggered
>>> We thought that was a Mac only issue related to that specific touchpad, 
>>> but it's possible the issue lies elsewhere. 
>>>
>>> Interestingly, some people are reporting missing on_press, while others 
>>> are missing on_release events! 
>>> It shouldn't matter, but could you have a try with the exact code 
>>> example from the issue tracker, and confirm your results there? 
>>> Also, please share the hardware and OS details for your laptop. 
>>>
>>> Thanks!
>>>
>>> On Tuesday, February 20, 2018 at 4:46:25 AM UTC+9, Polorky wrote:

 Hi, I'm having the same issue. I have run the following code which 
 prints out all detectable Pyglet events:
  

 screen.push_handlers(pyglet.window.event.WindowEventLogger())


 And this was the result:

 on_mouse_motion(x=442, y=371, dx=0, dy=-1)
 on_draw()
 on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
 on_draw()
 on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
 on_draw()
 on_mouse_motion(x=445, y=374, dx=3, dy=3)


 I clicked the mouse twice but it only read the 'release' not the 
 'press'.

 I'm using a Windows laptop and I've tried this with the mouse pad and 
 an external mouse, neither is working.

 Any ideas?

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-06 Thread Benjamin Moran
Hi Joshua, 

Yes, Dan was able to have a look at this recently. He has a pull request 
currently open, which would be great if you could try: 
https://bitbucket.org/pyglet/pyglet/pull-requests/112/fix-bug-introduced-in-pr-104-commit/diff
If you try it, let us know your results either here or by comenting on his 
pull request. 

-Ben


On Tuesday, March 6, 2018 at 11:28:17 PM UTC+9, Joshua C wrote:
>
> Hi Benjamin,
>
> Recently got back into Pyglet after noticing some updates (been a few 
> years). 
>
> Had this same issue as described above using the example code: all events 
> are being detected except on_mouse_press, 
> for all three of the main mouse buttons, and the two side buttons aren't 
> detected for any input at all.
> I am running Windows 10 Home, have an AMD FX-6350 processor, and a 
> wireless mouse, Logitech M510, 
> using whatever generic drivers come with Windows. I unfortunately cannot 
> test this issue on other hardware. 
> I poked around in Pyglet's source but I can't see anything obviously 
> wrong, so I am at a loss.
>
> Has any headway been made on this issue? Let me know if there is anything 
> I can do to help.
>
> Thank you!
>
> On Monday, February 19, 2018 at 6:12:54 PM UTC-8, Benjamin Moran wrote:
>>
>> Hi Polorky, 
>>
>> I wonder if this is related to this issue:  
>> https://bitbucket.org/pyglet/pyglet/issues/130/mouse-release-event-not-triggered
>> We thought that was a Mac only issue related to that specific touchpad, 
>> but it's possible the issue lies elsewhere. 
>>
>> Interestingly, some people are reporting missing on_press, while others 
>> are missing on_release events! 
>> It shouldn't matter, but could you have a try with the exact code example 
>> from the issue tracker, and confirm your results there? 
>> Also, please share the hardware and OS details for your laptop. 
>>
>> Thanks!
>>
>> On Tuesday, February 20, 2018 at 4:46:25 AM UTC+9, Polorky wrote:
>>>
>>> Hi, I'm having the same issue. I have run the following code which 
>>> prints out all detectable Pyglet events:
>>>  
>>>
>>> screen.push_handlers(pyglet.window.event.WindowEventLogger())
>>>
>>>
>>> And this was the result:
>>>
>>> on_mouse_motion(x=442, y=371, dx=0, dy=-1)
>>> on_draw()
>>> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
>>> on_draw()
>>> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
>>> on_draw()
>>> on_mouse_motion(x=445, y=374, dx=3, dy=3)
>>>
>>>
>>> I clicked the mouse twice but it only read the 'release' not the 'press'.
>>>
>>> I'm using a Windows laptop and I've tried this with the mouse pad and an 
>>> external mouse, neither is working.
>>>
>>> Any ideas?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-03-06 Thread Joshua C
Hi Benjamin,

Recently got back into Pyglet after noticing some updates (been a few 
years). 

Had this same issue as described above using the example code: all events 
are being detected except on_mouse_press, 
for all three of the main mouse buttons, and the two side buttons aren't 
detected for any input at all.
I am running Windows 10 Home, have an AMD FX-6350 processor, and a wireless 
mouse, Logitech M510, 
using whatever generic drivers come with Windows. I unfortunately cannot 
test this issue on other hardware. 
I poked around in Pyglet's source but I can't see anything obviously wrong, 
so I am at a loss.

Has any headway been made on this issue? Let me know if there is anything I 
can do to help.

Thank you!

On Monday, February 19, 2018 at 6:12:54 PM UTC-8, Benjamin Moran wrote:
>
> Hi Polorky, 
>
> I wonder if this is related to this issue:  
> https://bitbucket.org/pyglet/pyglet/issues/130/mouse-release-event-not-triggered
> We thought that was a Mac only issue related to that specific touchpad, 
> but it's possible the issue lies elsewhere. 
>
> Interestingly, some people are reporting missing on_press, while others 
> are missing on_release events! 
> It shouldn't matter, but could you have a try with the exact code example 
> from the issue tracker, and confirm your results there? 
> Also, please share the hardware and OS details for your laptop. 
>
> Thanks!
>
> On Tuesday, February 20, 2018 at 4:46:25 AM UTC+9, Polorky wrote:
>>
>> Hi, I'm having the same issue. I have run the following code which prints 
>> out all detectable Pyglet events:
>>  
>>
>> screen.push_handlers(pyglet.window.event.WindowEventLogger())
>>
>>
>> And this was the result:
>>
>> on_mouse_motion(x=442, y=371, dx=0, dy=-1)
>> on_draw()
>> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
>> on_draw()
>> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
>> on_draw()
>> on_mouse_motion(x=445, y=374, dx=3, dy=3)
>>
>>
>> I clicked the mouse twice but it only read the 'release' not the 'press'.
>>
>> I'm using a Windows laptop and I've tried this with the mouse pad and an 
>> external mouse, neither is working.
>>
>> Any ideas?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-02-19 Thread Benjamin Moran
Hi Polorky, 

I wonder if this is related to this issue:  
https://bitbucket.org/pyglet/pyglet/issues/130/mouse-release-event-not-triggered
We thought that was a Mac only issue related to that specific touchpad, but 
it's possible the issue lies elsewhere. 

Interestingly, some people are reporting missing on_press, while others are 
missing on_release events! 
It shouldn't matter, but could you have a try with the exact code example 
from the issue tracker, and confirm your results there? 
Also, please share the hardware and OS details for your laptop. 

Thanks!

On Tuesday, February 20, 2018 at 4:46:25 AM UTC+9, Polorky wrote:
>
> Hi, I'm having the same issue. I have run the following code which prints 
> out all detectable Pyglet events:
>  
>
> screen.push_handlers(pyglet.window.event.WindowEventLogger())
>
>
> And this was the result:
>
> on_mouse_motion(x=442, y=371, dx=0, dy=-1)
> on_draw()
> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
> on_draw()
> on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
> on_draw()
> on_mouse_motion(x=445, y=374, dx=3, dy=3)
>
>
> I clicked the mouse twice but it only read the 'release' not the 'press'.
>
> I'm using a Windows laptop and I've tried this with the mouse pad and an 
> external mouse, neither is working.
>
> Any ideas?
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-02-19 Thread Polorky
Hi, I'm having the same issue. I have run the following code which prints 
out all detectable Pyglet events:
 

screen.push_handlers(pyglet.window.event.WindowEventLogger())


And this was the result:

on_mouse_motion(x=442, y=371, dx=0, dy=-1)
on_draw()
on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
on_draw()
on_mouse_release(x=442, y=371, button='LEFT', modifiers=MOD_NUMLOCK)
on_draw()
on_mouse_motion(x=445, y=374, dx=3, dy=3)


I clicked the mouse twice but it only read the 'release' not the 'press'.

I'm using a Windows laptop and I've tried this with the mouse pad and an 
external mouse, neither is working.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with pyglet windows mouse event on_mouse_press

2018-01-24 Thread Benjamin Moran
Hi Doug. This works fine on my Linux box. What kind of setup do you have? 
If you're on a recent Mac portable, can you try it with an external mouse? 

On Wednesday, January 24, 2018 at 7:58:29 PM UTC+9, Doug World wrote:
>
> This simple program, using the latest pyglet 1.3.0 does not trigger the 
> event on_mouse_press.  However it does trigger on event on_mouse_release.  
> What am I doing wrong?  Thanks.
>
> #Using pyglet 1.3.0 we never see the on_mouse_press event
> import pyglet
> window = pyglet.window.Window(width=400, height=300, caption="TEST pyglet 
> on_mouse_press event")
>
>
> @window.event
> def on_mouse_press(x, y, button, modifiers):
> print('on_mouse_press')
>
>
> @window.event
> def on_mouse_release(x, y, button, modifiers):
> print('on_mouse_release')
>
>
> @window.event
> def on_draw():
> window.clear()
> #label.draw()
>
> pyglet.app.run()
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.