for Nenuba pen,use the original pressure value from the Nenula pen driver
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -376,13 +376,13 @@ | @@ -376,13 +376,13 @@ | ||
| 376 | x = px * ratio_x; | 376 | x = px * ratio_x; |
| 377 | y = py * ratio_y; | 377 | y = py * ratio_y; |
| 378 | 378 | ||
| 379 | - if(last_ext_press == 0 && press == 1){ | 379 | + if(last_ext_press == 0 && press != 0){ |
| 380 | ctx.beginPath(); | 380 | ctx.beginPath(); |
| 381 | 381 | ||
| 382 | ctx.moveTo(x, y); | 382 | ctx.moveTo(x, y); |
| 383 | last_ext_press = 1; | 383 | last_ext_press = 1; |
| 384 | } | 384 | } |
| 385 | - else if(press == 1) { | 385 | + else if(press != 0) { |
| 386 | ctx.lineTo(x, y); | 386 | ctx.lineTo(x, y); |
| 387 | ctx.stroke(); | 387 | ctx.stroke(); |
| 388 | } | 388 | } |
-
请 注册 或 登录 后发表评论