Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Rename mouse-pos to mouse-position
Browse files Browse the repository at this point in the history
  • Loading branch information
wasamasa committed Jun 16, 2016
1 parent efed7cf commit edb1cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/node-editor/node-editor.scm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
(+ (nk:rect-y circle) 3)))
(l0-x (nk:vec2-x l0))
(l0-y (nk:vec2-y l0))
(l1 (nk:mouse-pos (nk:input-mouse input)))
(l1 (nk:mouse-position (nk:input-mouse input)))
(l1-x (nk:vec2-x l1))
(l1-y (nk:vec2-y l1)))
(nk:stroke-curve
Expand Down
12 changes: 6 additions & 6 deletions nuklear.scm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
fill-circle

context-style style-window-border style-window-header-align-set!
context-input input-mouse mouse-delta mouse-pos
context-input input-mouse mouse-delta mouse-position
input-mouse-click-down-in-rect? input-mouse-hovering-in-rect? input-mouse-previously-hovering-in-rect? input-mouse-clicked? input-mouse-down? input-mouse-released?)

(import chicken scheme foreign)
Expand Down Expand Up @@ -372,14 +372,14 @@ enum nk_filter_type {
mouse* delta*)
delta))

(define (mouse-pos mouse)
(define (mouse-position mouse)
(let* ((mouse* (mouse-pointer mouse))
(pos (make-vec2 0 0))
(pos* (nk_vec2-pointer pos)))
(position (make-vec2 0 0))
(position* (nk_vec2-pointer position)))
((foreign-lambda* void ((nk_mouse* mouse) (nk_vec2* out))
"*out = mouse->pos;")
mouse* pos*)
pos))
mouse* position*)
position))

;;; stack-allocation helpers

Expand Down

0 comments on commit edb1cdc

Please sign in to comment.