Commit graph

14 commits

Author SHA1 Message Date
Xiao-Yong Jin
9af9ceca26 devdraw: rewrite the Cocoa screen using Metal
Add a new macOS cocoa screen, cocoa-screen-metal.m.
Rewrite the macOS cocoa drawing code to use the builtin runloop,
and use Metal to push pixels with CAMetalLayer.

Remove all of the deprecated code, and simplify some of the logic.
Modify mkwsysrules.sh such that the new code is used only when
the system version is equal or higher than 10.14.

Allow touch events to simulate mouse clicks:
three finger tap for the middle mouse button;
four finger tap for the 2-1 chord.

Support Tresize.

Scale 16x16 Cursor up to 32x32 with an EPX algorithm.

Support macOS input sources including the basic dead keys and the
advanced CJK input methods.

Increase the communication buffers in cocoa-srv.c to allow more
input, especially for long sentences prepared by the macOS input
souces.
2018-11-15 20:39:35 -05:00
David Jeannot
a995f469b3 devdraw: remove old OS X code
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5528046
2012-01-16 17:07:24 -05:00
Russ Cox
7064acbd10 devdraw: cleanup, fix macargv 2011-10-12 13:18:32 -04:00
David Jeannot
48107872ba devdraw: update Lion cocoa
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
2011-09-19 08:58:59 -04:00
David Jeannot
a287dbab23 devdraw: draft cocoa support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4974060
2011-09-06 10:10:43 -04:00
Russ Cox
b567422f98 keyboard(7): document X compose sequences
Add -x flag to mklatinkbd to generate file for $HOME/.XCompose.

Thanks to Anthony Martin, Tony Lainson, and Kris Maglione for legwork.

R=rsc
http://codereview.appspot.com/3811043
2011-01-02 15:39:09 -05:00
Russ Cox
de2d77683e mkfiles: fix macargv buf
R=rsc
http://codereview.appspot.com/2729042
2010-10-27 19:40:16 -07:00
Russ Cox
afea5fc3fd mac: add 9term.app, Plumb.app
R=rsc
http://codereview.appspot.com/2783041
2010-10-27 18:22:03 -07:00
Jeff Sickel
113867b836 devdraw: draft of new Cocoa-based devdraw
Can test with
	cd $PLAN9/src/cmd/devdraw
	mk devdraw-cocoa
	DEVDRAW=devdraw-cocoa colors
2009-09-29 09:35:23 -07:00
Michael Teichgräber
bb7ff349fb devdraw: generate Latin-1 table from lib/keyboard 2009-07-08 08:34:42 -07:00
Russ Cox
50e6d00cd3 devdraw/OSX: read $mousebuttonmap to allow swapping mouse buttons 2008-10-08 15:00:45 -07:00
Russ Cox
9142d36228 devdraw: OS X native version 2008-06-30 19:41:08 -04:00
rsc
0335ceaeb6 try for utf8 string first in getsnarf; new test program snarf 2007-05-03 19:13:56 +00:00
rsc
c66b52501b new draw server 2006-06-25 19:18:39 +00:00