Rev 29 | Rev 35 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 29 | Rev 34 | ||
---|---|---|---|
Line 494... | Line 494... | ||
494 | } |
494 | } |
495 | 495 | ||
496 | int position(int x, int y, int channel) |
496 | int position(int x, int y, int channel) |
497 | { |
497 | { |
498 | int flag = 0; |
498 | int flag = 0; |
499 | if ( (x > (padCenter[channel][0] - |
499 | if ( (x > (padCenter[channel][0] - 5040)) && (x < (padCenter[channel][0] + 5040)) && |
500 | (y > (padCenter[channel][1] - |
500 | (y > (padCenter[channel][1] - 5040)) && (y < (padCenter[channel][1] + 5040)) ) flag = 1; |
501 | return flag; |
501 | return flag; |
502 | } |
502 | } |