mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:27:40 +00:00
Implement buttonNumber
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12950 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1ffddcdc8
commit
8f96915e63
3 changed files with 8 additions and 5 deletions
|
@ -444,7 +444,7 @@ static Class eventClass;
|
|||
/*
|
||||
* Getting Mouse Event Information
|
||||
*/
|
||||
+ (NSPoint)mouseLocation
|
||||
+ (NSPoint) mouseLocation
|
||||
{
|
||||
float x, y;
|
||||
|
||||
|
@ -454,8 +454,10 @@ static Class eventClass;
|
|||
|
||||
- (int) buttonNumber
|
||||
{
|
||||
/* FIXME */
|
||||
return 0;
|
||||
if (event_type < NSLeftMouseDown || event_type > NSMouseExited)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"buttonNumber requested for non-mouse event"];
|
||||
return event_data.mouse.button;
|
||||
}
|
||||
|
||||
- (int) clickCount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue