Skip to content

Commit

Permalink
Added definitions for Shift,Ctrl,Alt special keys
Browse files Browse the repository at this point in the history
Cleaned conditional: #+win32 -> #+windows (ccl does not define win32 on
win 64)
  • Loading branch information
vi committed Jul 20, 2014
1 parent c004fa3 commit cc663a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gl/bindings.lisp
Expand Up @@ -106,14 +106,14 @@
#+linux
(defcfun ("glXGetProcAddress" glx-get-proc-address) :pointer
(proc-name :string))
#+win32
#+windows
(defcfun ("wglGetProcAddress" wgl-get-proc-address) :pointer
(proc-name :string))

(defun gl-get-proc-address (name)
(funcall (or *gl-get-proc-address*
#+linux #'glx-get-proc-address
#+win32 #'wgl-get-proc-address)
#+windows #'wgl-get-proc-address)
name))

(eval-when (:load-toplevel :execute)
Expand Down
11 changes: 9 additions & 2 deletions glut/callbacks.lisp
Expand Up @@ -244,7 +244,14 @@
:key-page-down
:key-home
:key-end
:key-insert)
:key-insert
;; Modifiers keys
(:key-left-shift 112)
:key-right-shift
:key-left-ctrl
:key-right-ctrl
:key-left-alt
:key-right-alt)

(defcenum visibility-state
:not-visible
Expand All @@ -254,4 +261,4 @@
:hidden
:fully-retained
:partially-retained
:fully-covered)
:fully-covered)

1 comment on commit cc663a1

@mister-reg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanx!!! I need this keys support too

Please sign in to comment.