Skip to content

Commit f70281b

Browse files
committed
Remove em dashes from What's New, rewrite sentences to sound natural
1 parent d93fd54 commit f70281b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

whats-new/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>What's New</h1>
6666
<div class="wn-tag changed">Changed</div>
6767
<div class="wn-card-title">_mousePressed and _keyPressed</div>
6868
<div class="wn-card-body">
69-
<p>In Processing Java, <code>mousePressed</code> is both a boolean variable (is the mouse held right now?) and an event callback function (called once on click). C++ does not allow a variable and a function to share the same name in the same scope, so the boolean variables are renamed with an underscore prefix to avoid the collision.</p>
69+
<p>In Processing Java, <code>mousePressed</code> is both a boolean variable that tells you if the mouse is held right now, and an event callback function that fires once on click. C++ does not allow a variable and a function to share the same name in the same scope, so the boolean variables are renamed with an underscore prefix to avoid the collision.</p>
7070
<p>The event callbacks keep their original names unchanged. Only the state variables change.</p>
7171
<pre>// Check if mouse is currently held down:
7272
if (_mousePressed) { ... }
@@ -86,7 +86,7 @@ <h1>What's New</h1>
8686
<div class="wn-tag removed">Replaced</div>
8787
<div class="wn-card-title">std::vector replaces IntList, FloatList, ArrayList</div>
8888
<div class="wn-card-body">
89-
<p>Processing Java's typed list classes <code>IntList</code>, <code>FloatList</code>, <code>StringList</code>, and <code>ArrayList</code> are not available in C++ Mode. Use <code>std::vector</code> from the C++ Standard Library instead. It is faster, more flexible, works with any type including your own classes, and requires no imports.</p>
89+
<p>Processing Java's typed list classes <code>IntList</code>, <code>FloatList</code>, <code>StringList</code>, and <code>ArrayList</code> are not available in C++ Mode. Use <code>std::vector</code> from the C++ Standard Library instead. It is faster, more flexible, works with any type including your own classes, and you do not need to import anything.</p>
9090
<pre>// Java Processing:
9191
IntList nums = new IntList();
9292
nums.append(42);
@@ -107,7 +107,7 @@ <h1>What's New</h1>
107107
<div class="wn-tag removed">Replaced</div>
108108
<div class="wn-card-title">std::map replaces IntDict, FloatDict, StringDict</div>
109109
<div class="wn-card-body">
110-
<p>Processing Java's typed dictionary classes <code>IntDict</code>, <code>FloatDict</code>, <code>StringDict</code> are replaced by <code>std::map</code>. Keys are kept in sorted order. Works with any combination of key and value types.</p>
110+
<p>Processing Java's typed dictionary classes <code>IntDict</code>, <code>FloatDict</code>, <code>StringDict</code> are replaced by <code>std::map</code>. Keys are kept in sorted order and it works with any combination of key and value types.</p>
111111
<pre>// Java Processing:
112112
StringDict d = new StringDict();
113113
d.set("name", "Pep");
@@ -127,8 +127,8 @@ <h1>What's New</h1>
127127
<div class="wn-tag new">New</div>
128128
<div class="wn-card-title">captureMouse() and releaseMouse()</div>
129129
<div class="wn-card-body">
130-
<p><code>captureMouse()</code> locks the cursor to the window and enables raw mouse input, completely bypassing OS acceleration and cursor boundaries. This is the standard approach for first-person and shooter games where the mouse needs to rotate a camera freely without hitting the edge of the screen.</p>
131-
<p><code>releaseMouse()</code> restores normal cursor behavior. Call it when opening a menu, showing a dialog, or pausing the game.</p>
130+
<p><code>captureMouse()</code> locks the cursor to the window and enables raw mouse input, completely bypassing OS acceleration and cursor boundaries. This is the right approach for first-person and shooter games where the mouse needs to rotate a camera freely without hitting the edge of the screen.</p>
131+
<p><code>releaseMouse()</code> restores normal cursor behavior. Call it when you open a menu, show a dialog, or pause the game.</p>
132132
<pre>void setup() {
133133
size(640, 360, P3D);
134134
captureMouse();
@@ -148,8 +148,8 @@ <h1>What's New</h1>
148148
<div class="wn-tag new">New</div>
149149
<div class="wn-card-title">mouseDX and mouseDY</div>
150150
<div class="wn-card-body">
151-
<p>Two new variables that accumulate raw mouse movement between frames. Unlike <code>mouseX - pmouseX</code>, these capture every cursor event that occurs between frames so fast mouse movement is never dropped or lost at high frame rates.</p>
152-
<p>They reset to <code>0</code> automatically after each <code>draw()</code> call. Use them for FPS camera rotation, turret aiming, or any input that needs to be frame-rate independent.</p>
151+
<p>Two new variables that accumulate raw mouse movement between frames. Unlike <code>mouseX - pmouseX</code>, these capture every cursor event that occurs between frames so fast mouse movement is never dropped or lost at high frame rates.</p>
152+
<p>They reset to <code>0</code> automatically after each <code>draw()</code> call. Use them for FPS camera rotation, turret aiming, or any other input that needs to be frame-rate independent.</p>
153153
<pre>float yaw = 0, pitch = 0;
154154

155155
void setup() {
@@ -178,7 +178,7 @@ <h1>What's New</h1>
178178
<div class="wn-tag new">New</div>
179179
<div class="wn-card-title">Full C++ Standard Library included</div>
180180
<div class="wn-card-body">
181-
<p>Every C++ standard library header is included automatically. No <code>#include</code> is needed anywhere in your sketch. Use threads, algorithms, containers, and all modern C++ features directly.</p>
181+
<p>Every C++ standard library header is included automatically. You do not need a single <code>#include</code> anywhere in your sketch. Threads, algorithms, containers, all of modern C++ is just there.</p>
182182
<pre>// All of this just works with no includes:
183183
std::vector&lt;float&gt; data = {3, 1, 2};
184184
std::sort(data.begin(), data.end());

0 commit comments

Comments
 (0)